2010-01-01 05:34:51 -05:00
|
|
|
// RUN: %clang_cc1 -emit-llvm -o - %s
|
2010-02-16 04:31:36 -05:00
|
|
|
|
|
|
|
|
// CHECK: @_ZN1A1aE = constant i32 10
|
|
|
|
|
|
|
|
|
|
// PR5564.
|
|
|
|
|
struct A {
|
|
|
|
|
static const int a = 10;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const int A::a;
|
|
|
|
|
|
2009-10-14 14:03:49 -04:00
|
|
|
struct S {
|
|
|
|
|
static int i;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void f() {
|
|
|
|
|
int a = S::i;
|
|
|
|
|
}
|