[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / cross-project-tests / debuginfo-tests / llgdb-tests / static-member-2.cpp
blob5b6647c0631ca82bc3867248168897af0b6edd55
1 // RUN: %clangxx %target_itanium_abi_host_triple -O0 -g %s -o %t -c
2 // RUN: %clangxx %target_itanium_abi_host_triple %t -o %t.out
3 // RUN: %test_debuginfo %s %t.out
4 // XFAIL: gdb-clang-incompatibility
6 // DEBUGGER: delete breakpoints
7 // DEBUGGER: break static-member.cpp:33
8 // DEBUGGER: r
9 // DEBUGGER: ptype C
10 // CHECK: {{struct|class}} C {
11 // CHECK: 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 C::a
17 // CHECK: ${{[0-9]}} = 4
18 // DEBUGGER: p C::c
19 // CHECK: ${{[0-9]}} = 15
21 // PR14471, PR14734
23 class C {
24 public:
25 const static int a = 4;
26 static int b;
27 static int c;
28 int d;
31 int C::c = 15;
32 const int C::a;
34 int main() {
35 C instance_C;
36 return C::a;