diff options
Diffstat (limited to 'binutils-2.21/ld/testsuite/ld-elf/dl6.c')
-rw-r--r-- | binutils-2.21/ld/testsuite/ld-elf/dl6.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/binutils-2.21/ld/testsuite/ld-elf/dl6.c b/binutils-2.21/ld/testsuite/ld-elf/dl6.c new file mode 100644 index 0000000..f655ca6 --- /dev/null +++ b/binutils-2.21/ld/testsuite/ld-elf/dl6.c @@ -0,0 +1,14 @@ +#include <stdio.h> + +int bar = 10; + +void +foo (void) +{ + if (bar == 10) + printf ("bar is in DSO.\n"); + else if (bar == -20) + printf ("bar is in main.\n"); + else + printf ("FAIL\n"); +} |