aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorStuart Hastings <stuart@apple.com>2010-12-02 21:25:55 +0000
committerStuart Hastings <stuart@apple.com>2010-12-02 21:25:55 +0000
commit1d9582cf96b666f3d45d504f2697eb82c5fc9f25 (patch)
tree7e721dd7442726d520e086bb2926ef9aaf28e36e /test
parent9e413a96a3adea2648e08b255f46cdeb94b35a07 (diff)
downloadexternal_llvm-1d9582cf96b666f3d45d504f2697eb82c5fc9f25.zip
external_llvm-1d9582cf96b666f3d45d504f2697eb82c5fc9f25.tar.gz
external_llvm-1d9582cf96b666f3d45d504f2697eb82c5fc9f25.tar.bz2
Test case for r120740. Radar 8712503.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/FrontendC/2010-12-01-CommonGlobal.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/FrontendC/2010-12-01-CommonGlobal.c b/test/FrontendC/2010-12-01-CommonGlobal.c
new file mode 100644
index 0000000..3f6d7e8
--- /dev/null
+++ b/test/FrontendC/2010-12-01-CommonGlobal.c
@@ -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;