IR: Give 'DI' prefix to debug info metadata
[oota-llvm.git] / test / Assembler / metadata.ll
index b483fc3f4cfc6b26b769668236daee0503d23d2e..4fb8851a9f40a4d3715a86834f881ed2a6a54c6a 100644 (file)
@@ -11,8 +11,22 @@ define void @test() {
   ret void, !foo !0, !bar !1
 }
 
-!0 = !MDLocation(line: 662302, column: 26, scope: !1)
-!1 = !MDSubprogram(name: "foo")
+; CHECK: define void @test2() !foo !2 !baz !3
+define void @test2() !foo !2 !baz !3 {
+  unreachable
+}
+
+; CHECK: define void @test3() !bar !3
+; CHECK: unreachable, !bar !4
+define void @test3() !bar !3 {
+  unreachable, !bar !4
+}
+
+!0 = !DILocation(line: 662302, column: 26, scope: !1)
+!1 = !DISubprogram(name: "foo")
+!2 = distinct !{}
+!3 = distinct !{}
+!4 = distinct !{}
 
 declare void @llvm.dbg.func.start(metadata) nounwind readnone