1; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2
3!llvm.dbg.sp = !{!0}
4!llvm.dbg.cu = !{!5}
5!llvm.module.flags = !{!6}
6
7!0 = !MDSubprogram(name: "bar", linkageName: "_ZN3foo3barEv", line: 3, isLocal: false, isDefinition: false, virtualIndex: 6, flags: DIFlagProtected | DIFlagPrototyped, isOptimized: false, scopeLine: 3, file: !4, scope: !1, type: !2)
8!1 = !MDFile(filename: "/foo", directory: "bar.cpp")
9!2 = !MDSubroutineType(types: !3)
10!3 = !{null}
11!4 = !MDFile(filename: "/foo", directory: "bar.cpp")
12!5 = !MDCompileUnit(language: DW_LANG_C99, isOptimized: true, emissionKind: 0, file: !4, enums: !{}, retainedTypes: !{})
13
14define <{i32, i32}> @f1() {
15; CHECK: !dbgx ![[NUMBER:[0-9]+]]
16  %r = insertvalue <{ i32, i32 }> zeroinitializer, i32 4, 1, !dbgx !1
17; CHECK: !dbgx ![[NUMBER]]
18  %e = extractvalue <{ i32, i32 }> %r, 0, !dbgx !1
19  ret <{ i32, i32 }> %r
20}
21
22; CHECK: DIFlagProtected
23!6 = !{i32 1, !"Debug Info Version", i32 3}
24