1 ; Round trip for the following:
9 ; This is the minimum code to generate export symbols flag due to anonymous class in A.
11 ; RUN: llvm-as %s -o - | llvm-dis | llvm-as | llvm-dis | FileCheck %s
13 %struct.A = type { %struct.anon }
14 %struct.anon = type { i32 }
16 @a = global %struct.A zeroinitializer, align 4, !dbg !0
18 !llvm.module.flags = !{!14, !15}
22 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
23 !1 = distinct !DIGlobalVariable(name: "a", scope: !2, file: !3, line: 5, type: !6, isLocal: false, isDefinition: true)
24 !2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, producer: "clang version 10.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5, nameTableKind: GNU)
25 !3 = !DIFile(filename: "simple_anon_class.cpp", directory: "/dir")
28 !6 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "A", file: !3, line: 1, size: 32, flags: DIFlagTypePassByValue, elements: !7, identifier: "_ZTS1A")
30 !8 = !DIDerivedType(tag: DW_TAG_member, scope: !6, file: !3, line: 2, baseType: !9, size: 32)
31 !9 = distinct !DICompositeType(tag: DW_TAG_structure_type, scope: !6, file: !3, line: 2, size: 32, flags: DIFlagExportSymbols | DIFlagTypePassByValue, elements: !10, identifier: "_ZTSN1AUt_E")
32 ; CHECK: DIFlagExportSymbols | DIFlagTypePassByValue
34 !11 = !DIDerivedType(tag: DW_TAG_member, name: "y", scope: !9, file: !3, line: 3, baseType: !12, size: 32)
35 !12 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
36 !14 = !{i32 2, !"Dwarf Version", i32 4}
37 !15 = !{i32 2, !"Debug Info Version", i32 3}
38 !16 = !{!"clang version 10.0.0"}