brintos

brintos / llvm-project-archived public Read only

0
0
Text · 904 B · e6518a4 Raw
26 lines · plain
1; RUN: llvm-as -disable-output < %s -o /dev/null 2>&1 | FileCheck %s2 3define i32 @foo() !dbg !4 {4entry:5  ret i32 0, !dbg !66}7 8define i32 @bar() !dbg !5 {9entry:10; CHECK: !dbg attachment points at wrong subprogram for function11  ret i32 0, !dbg !612}13 14; CHECK: warning: ignoring invalid debug info15!llvm.dbg.cu = !{!0}16!llvm.module.flags = !{!7, !8}17 18!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !2, globals: !2, imports: !2)19!1 = !DIFile(filename: "dwarf-test.c", directory: "test")20!2 = !{}21!4 = distinct !DISubprogram(name: "foo", scope: !0, isDefinition: true, unit: !0)22!5 = distinct !DISubprogram(name: "bar", scope: !0, isDefinition: true, unit: !0)23!6 = !DILocation(line: 7, scope: !4)24!7 = !{i32 2, !"Dwarf Version", i32 3}25!8 = !{i32 1, !"Debug Info Version", i32 3}26