DI: Reverse direction of subprogram -> function edge.
[oota-llvm.git] / test / Verifier / metadata-function-dbg.ll
index 43c632babdaef54ce8e0962669b113b8cd3064e2..2a6fd8bbb48e451f8eb644e923bec23c09a5496f 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: not llvm-as %s -disable-output 2>&1 | FileCheck %s
 
-define void @foo() !dbg !4 {
+define void @foo() !dbg !4 !dbg !4 {
   unreachable
 }
 
@@ -19,5 +19,5 @@ define void @bar() !dbg !6 {
 !1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, subprograms: !3)
 !2 = !DIFile(filename: "t.c", directory: "/path/to/dir")
 !3 = !{!4}
-!4 = distinct !DISubprogram(name: "foo", scope: !1, file: !2, function: void ()* @foo)
+!4 = distinct !DISubprogram(name: "foo", scope: !1, file: !2)
 !6 = !{}