llvm-mirror/test/FrontendC/2010-12-01-CommonGlobal.c
Stuart Hastings 55928bc576 Test case for r120740. Radar 8712503.
llvm-svn: 120741
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;