diff options
Diffstat (limited to 'regress/libexec/ld.so/weak/libweak/weak.c')
-rw-r--r-- | regress/libexec/ld.so/weak/libweak/weak.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/regress/libexec/ld.so/weak/libweak/weak.c b/regress/libexec/ld.so/weak/libweak/weak.c new file mode 100644 index 00000000000..daa575c3d10 --- /dev/null +++ b/regress/libexec/ld.so/weak/libweak/weak.c @@ -0,0 +1,16 @@ +/* $OpenBSD: weak.c,v 1.1 2002/02/10 22:51:41 fgsch Exp $ */ + +/* + * Public domain. 2002, Federico Schwindt <fgsch@openbsd.org>. + */ + +#include <sys/cdefs.h> +#include "defs.h" + +__weak_alias(func,weak_func); + +int +weak_func() +{ + return (WEAK_REF); +} |