diff options
author | Kurt Miller <kurt@cvs.openbsd.org> | 2005-09-30 14:57:36 +0000 |
---|---|---|
committer | Kurt Miller <kurt@cvs.openbsd.org> | 2005-09-30 14:57:36 +0000 |
commit | a397de8f3e4d9b055840c2a78b6586d604bccbcc (patch) | |
tree | 4b55b094be6a5e41a569f3765d5c1cd27ee4c713 /regress | |
parent | 79d7160fba64e3e1bce8ecf4f32af3dae2c2d7cf (diff) |
add a function with the same name in aa and bb, also bbTest2() in prep
for new regress.
Diffstat (limited to 'regress')
-rw-r--r-- | regress/libexec/ld.so/dlclose/test1/libaa/aa.c | 9 | ||||
-rw-r--r-- | regress/libexec/ld.so/dlclose/test1/libbb/bb.c | 14 |
2 files changed, 21 insertions, 2 deletions
diff --git a/regress/libexec/ld.so/dlclose/test1/libaa/aa.c b/regress/libexec/ld.so/dlclose/test1/libaa/aa.c index 64e3f5e1362..e3bb9af9fde 100644 --- a/regress/libexec/ld.so/dlclose/test1/libaa/aa.c +++ b/regress/libexec/ld.so/dlclose/test1/libaa/aa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aa.c,v 1.1 2005/09/28 15:42:32 kurt Exp $ */ +/* $OpenBSD: aa.c,v 1.2 2005/09/30 14:57:35 kurt Exp $ */ /* * Copyright (c) 2005 Kurt Miller <kurt@openbsd.org> @@ -18,3 +18,10 @@ */ int aaSymbol; + +int +duplicateFun() +{ + return (0); +} + diff --git a/regress/libexec/ld.so/dlclose/test1/libbb/bb.c b/regress/libexec/ld.so/dlclose/test1/libbb/bb.c index debccfd76d5..5ca4ed3dcbf 100644 --- a/regress/libexec/ld.so/dlclose/test1/libbb/bb.c +++ b/regress/libexec/ld.so/dlclose/test1/libbb/bb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bb.c,v 1.1 2005/09/28 15:42:32 kurt Exp $ */ +/* $OpenBSD: bb.c,v 1.2 2005/09/30 14:57:35 kurt Exp $ */ /* * Copyright (c) 2005 Kurt Miller <kurt@openbsd.org> @@ -29,6 +29,12 @@ bbLazyFun() } int +duplicateFun() +{ + return (1); +} + +int bbTest1() { int ret = 0; @@ -43,3 +49,9 @@ bbTest1() return (ret); } + +int +bbTest2() +{ + return(duplicateFun()); +} |