diff options
Diffstat (limited to 'ld/testsuite/ld-elf/comm1.c')
-rw-r--r-- | ld/testsuite/ld-elf/comm1.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/comm1.c b/ld/testsuite/ld-elf/comm1.c new file mode 100644 index 00000000000..c553d86f4af --- /dev/null +++ b/ld/testsuite/ld-elf/comm1.c @@ -0,0 +1,17 @@ +#include <stdio.h> +#include <stdlib.h> + +int foo; +void bar (void); + +int +main () +{ + if (foo != 0) + abort (); + foo = 200; + bar (); + if (foo == 200) + printf ("PASS\n"); + return 0; +} |