blob: 1e9a0e61257518790bcf49afdb9f87c28f2005ef [file] [log] [blame]
Adrian Prantldbfda632016-11-03 19:42:02 +00001; RUN: %llc_dwarf %s -o - -filetype=obj | llvm-dwarfdump -debug-dump=info - | FileCheck %s
2; Generated from:
3; namespace normal { inline namespace inlined { int i; } }
4; Check that an inline namespace is emitted with DW_AT_export_symbols
5
6; CHECK: DW_TAG_namespace
7; CHECK-NEXT: DW_AT_name {{.*}} "normal"
8; CHECK-NOT: DW_AT_export_symbols
9; CHECK-NOT: NULL
10; CHECK: DW_TAG_namespace
11; CHECK-NEXT: DW_AT_name {{.*}} "inlined"
12; CHECK-NOT: DW_TAG
13; CHECK-NOT: NULL
14; CHECK: DW_AT_export_symbols [DW_FORM_flag_present] (true)
15; CHECK-NOT: DW_TAG
16; CHECK: DW_TAG_variable
17; CHECK-NEXT: DW_AT_name {{.*}} "i"
18
19source_filename = "namespace.cpp"
20target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
21target triple = "x86_64-apple-macosx10.12.0"
22
23@_ZN6normal7inlined1iE = global i32 0, align 4, !dbg !0
24
25!llvm.dbg.cu = !{!5}
26!llvm.module.flags = !{!8, !9, !10}
27!llvm.ident = !{!11}
28
Adrian Prantlbceaaa92016-12-20 02:09:43 +000029!0 = distinct !DIGlobalVariableExpression(var: !DIGlobalVariable(name: "i", linkageName: "_ZN6normal7inlined1iE", scope: !1, file: !2, line: 1, type: !4, isLocal: false, isDefinition: true))
Adrian Prantldbfda632016-11-03 19:42:02 +000030!1 = !DINamespace(name: "inlined", scope: !3, file: !2, line: 1, exportSymbols: true)
31!2 = !DIFile(filename: "namespace.cpp", directory: "/")
32!3 = !DINamespace(name: "normal", scope: null, file: !2, line: 1)
33!4 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
34!5 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !2, producer: "clang version 4.0.0 (trunk 285825) (llvm/trunk 285822)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !6, globals: !7)
35!6 = !{}
36!7 = !{!0}
37!8 = !{i32 2, !"Dwarf Version", i32 5}
38!9 = !{i32 2, !"Debug Info Version", i32 3}
39!10 = !{i32 1, !"PIC Level", i32 2}
40!11 = !{!"clang version 4.0.0 (trunk 285825) (llvm/trunk 285822)"}