2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -o - %s
|
2010-01-27 01:43:42 +08:00
|
|
|
|
|
|
|
// CHECK: @_ZN1A1aE = constant i32 10
|
|
|
|
|
|
|
|
// PR5564.
|
|
|
|
struct A {
|
|
|
|
static const int a = 10;
|
|
|
|
};
|
|
|
|
|
|
|
|
const int A::a;
|
|
|
|
|
2009-09-03 05:01:21 +08:00
|
|
|
struct S {
|
|
|
|
static int i;
|
|
|
|
};
|
|
|
|
|
|
|
|
void f() {
|
|
|
|
int a = S::i;
|
|
|
|
}
|