aboutsummaryrefslogtreecommitdiff
path: root/test/Feature
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-05-10 20:53:17 +0000
committerChris Lattner <sabre@nondot.org>2010-05-10 20:53:17 +0000
commitfd450c026ae0e804da7025d3318551b203d584a9 (patch)
treed39199df4cbbd8f94b4426aded398bdb767e04f0 /test/Feature
parentc2792431289f7a822b6e6f7b1fabc8d367ce9664 (diff)
fix PR7105 by enumerating MDNodes on all @llvm.foo
function calls, not just recognized intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103428 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature')
-rw-r--r--test/Feature/metadata.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Feature/metadata.ll b/test/Feature/metadata.ll
new file mode 100644
index 0000000000..3e2cd3c4c0
--- /dev/null
+++ b/test/Feature/metadata.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
+; PR7105
+
+define void @foo() {
+ call void @llvm.zonk(metadata !1, i64 0, metadata !1)
+ ret void
+}
+
+declare void @llvm.zonk(metadata, i64, metadata) nounwind readnone
+
+!named = !{!0}
+!0 = metadata !{i8** null}
+!1 = metadata !{i8* null}