1 | // UNSUPPORTED: system-windows |
2 | // |
3 | // Test to verify we are correctly generating anonymous flags when parsing |
4 | // anonymous class and unnamed structs from DWARF to the a clang AST node. |
5 | |
6 | // RUN: %clangxx_host -g -c -o %t.o %s |
7 | // RUN: lldb-test symbols -dump-clang-ast %t.o | FileCheck %s |
8 | |
9 | struct A { |
10 | struct { |
11 | int x; |
12 | }; |
13 | struct { |
14 | int y; |
15 | } C; |
16 | } a; |
17 | |
18 | // CHECK: A::(anonymous struct) |
19 | // CHECK: |-DefinitionData is_anonymous pass_in_registers aggregate standard_layout trivially_copyable pod trivial literal |
20 | // CHECK: A::(unnamed struct) |
21 | // CHECK: |-DefinitionData pass_in_registers aggregate standard_layout trivially_copyable pod trivial literal |
22 | |