blob: 3bbc982e1e2bf81493bc6fd589afd37d29c6f9d5 [file] [log] [blame]
Eric Christopher2ccf3a22013-01-16 01:22:09 +00001// RUN: %clangxx -O0 -g %s -o %t.out
2// RUN: %test_debuginfo %s %t.out
3
4// DEBUGGER: delete breakpoints
5// DEBUGGER: break main
6// DEBUGGER: r
7// DEBUGGER: n
8// DEBUGGER: ptype C
9// CHECK: type = class C {
10// CHECK-NEXT: public:
11// CHECK-NEXT: static const int a;
12// CHECK-NEXT: static int b;
13// CHECK-NEXT: static int c;
14// CHECK-NEXT: int d;
15// CHECK-NEXT: }
16// DEBUGGER: p instance_C
17// CHECK: $1 = {static a = 4, static b = {{.*}}, static c = 15, d = {{.*}}}
18
19// PR14471, PR14734
20
21class C {
22public:
23 const static int a = 4;
24 static int b;
25 static int c;
26 int d;
27};
28
29int C::c = 15;
30const int C::a;
31
32int main() {
33 C instance_C;
34 return C::a;
35}