summaryrefslogtreecommitdiffstats
path: root/binutils-2.21/ld/testsuite/ld-elf/comm1.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.21/ld/testsuite/ld-elf/comm1.c')
-rw-r--r--binutils-2.21/ld/testsuite/ld-elf/comm1.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/binutils-2.21/ld/testsuite/ld-elf/comm1.c b/binutils-2.21/ld/testsuite/ld-elf/comm1.c
new file mode 100644
index 0000000..c553d86
--- /dev/null
+++ b/binutils-2.21/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;
+}