llvm-6502/test/FrontendC/2010-12-01-CommonGlobal.c
Stuart Hastings 1d9582cf96 Test case for r120740. Radar 8712503.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120741 91177308-0d34-0410-b5e6-96231b3b80d8
2010-12-02 21:25:55 +00:00

8 lines
226 B
C

// 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;