]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - ld/testsuite/ld-elf/comm1.c
Imported binutils-2.20
[msp430-binutils.git] / ld / testsuite / ld-elf / comm1.c
diff --git a/ld/testsuite/ld-elf/comm1.c b/ld/testsuite/ld-elf/comm1.c
new file mode 100644 (file)
index 0000000..c553d86
--- /dev/null
@@ -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;
+}