clang/test/DebugInfo/CXX/export_symbols.cpp
raw| 1 | // RUN: %clang_cc1 -emit-llvm -debug-info-kind=standalone -triple %itanium_abi_triple %s -o - | FileCheck %s |
| 2 | |
| 3 | // CHECK: [[SCOPE:![0-9]+]] = distinct !DICompositeType({{.*}}flags: DIFlagTypePassByValue |
| 4 | // CHECK: !DICompositeType(tag: DW_TAG_structure_type, scope: [[SCOPE]] |
| 5 | // CHECK-SAME: DIFlagExportSymbols | DIFlagTypePassByValue |
| 6 | struct A { |
| 7 | // Anonymous class exports its symbols into A |
| 8 | struct { |
| 9 | int y; |
| 10 | }; |
| 11 | } a; |