1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null |
---|---|
2 | // Don't crash on a common-linkage constant global. |
3 | extern const int kABSourceTypeProperty; |
4 | int foo(void) { |
5 | return kABSourceTypeProperty; |
6 | } |
7 | const int kABSourceTypeProperty; |
8 |
1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null |
---|---|
2 | // Don't crash on a common-linkage constant global. |
3 | extern const int kABSourceTypeProperty; |
4 | int foo(void) { |
5 | return kABSourceTypeProperty; |
6 | } |
7 | const int kABSourceTypeProperty; |
8 |