Test case for r120740. Radar 8712503.
authorStuart Hastings <stuart@apple.com>
Thu, 2 Dec 2010 21:25:55 +0000 (21:25 +0000)
committerStuart Hastings <stuart@apple.com>
Thu, 2 Dec 2010 21:25:55 +0000 (21:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120741 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendC/2010-12-01-CommonGlobal.c [new file with mode: 0644]

diff --git a/test/FrontendC/2010-12-01-CommonGlobal.c b/test/FrontendC/2010-12-01-CommonGlobal.c
new file mode 100644 (file)
index 0000000..3f6d7e8
--- /dev/null
@@ -0,0 +1,7 @@
+// RUN: %llvmgcc -S %s -o - | llvm-as -o /dev/null
+// Don't crash on a common-linkage constant global.
+extern const int kABSourceTypeProperty;
+int foo(void) {
+  return kABSourceTypeProperty;
+}
+const int kABSourceTypeProperty;