[llvm-commits] [llvm] r120741 - /llvm/trunk/test/FrontendC/2010-12-01-CommonGlobal.c

Stuart Hastings stuart at apple.com
Thu Dec 2 13:25:55 PST 2010


Author: stuart
Date: Thu Dec  2 15:25:55 2010
New Revision: 120741

URL: http://llvm.org/viewvc/llvm-project?rev=120741&view=rev
Log:
Test case for r120740.  Radar 8712503.

Added:
    llvm/trunk/test/FrontendC/2010-12-01-CommonGlobal.c

Added: llvm/trunk/test/FrontendC/2010-12-01-CommonGlobal.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2010-12-01-CommonGlobal.c?rev=120741&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC/2010-12-01-CommonGlobal.c (added)
+++ llvm/trunk/test/FrontendC/2010-12-01-CommonGlobal.c Thu Dec  2 15:25:55 2010
@@ -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;





More information about the llvm-commits mailing list