Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / Shell / SymbolFile / DWARF / clang-ast-from-dwarf-unamed-and-anon-structs.cpp
blob5cc39bc351b2940a8e91a5f6c40173b0d9f2d593
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.
6 // RUN: %clangxx_host -g -c -o %t.o %s
7 // RUN: lldb-test symbols -dump-clang-ast %t.o | FileCheck %s
9 struct A {
10 struct {
11 int x;
13 struct {
14 int y;
15 } C;
16 } a;
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