brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 19b510d Raw
34 lines · plain
1; RUN: llvm-as -disable-output -o - < %s 2>&1 | FileCheck %s2; ModuleID = 'test.c'3target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"4target triple = "x86_64-apple-macosx10.10.0"5 6; Function Attrs: nounwind ssp uwtable7define i32 @foo() #0 !dbg !4 {8entry:9  ret i32 42, !dbg !1310}11 12attributes #0 = { nounwind ssp uwtable }13 14!llvm.dbg.cu = !{!0}15!llvm.module.flags = !{!9, !10, !11}16!llvm.ident = !{!12}17 18!0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.7.0 ", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !2, globals: !2, imports: !2)19!1 = !DIFile(filename: "test.c", directory: "")20!2 = !{}21!4 = distinct !DISubprogram(name: "foo", line: 1, isLocal: false, isDefinition: true, isOptimized: false, unit: !0, scopeLine: 1, file: !1, scope: !5, type: !6, retainedNodes: !2)22!5 = !DIFile(filename: "test.c", directory: "")23!6 = !DISubroutineType(types: !7)24!7 = !{!8}25!8 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)26!9 = !{i32 2, !"Dwarf Version", i32 2}27!10 = !{i32 2, !"Debug Info Version", i32 3}28!11 = !{i32 1, !"PIC Level", i32 2}29!12 = !{!"clang version 3.7.0 "}30; An old-style DILocation should not pass verify.31; CHECK: invalid !dbg metadata attachment32!13 = !{i32 2, i32 2, !4, null}33; CHECK: warning: ignoring invalid debug info34