summaryrefslogtreecommitdiff
path: root/test/Feature
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-08-24 02:24:03 +0000
committerDan Gohman <gohman@apple.com>2010-08-24 02:24:03 +0000
commit309b3af547a60bedd74daa2a94ebd3d3ed5f06e9 (patch)
tree1ed0e391d9675ac9427569fa9e34d34146789144 /test/Feature
parent78aeae2d7b771e33c5ff5218802cd2e9dab13df0 (diff)
Extend function-local metadata to be usable as attachments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature')
-rw-r--r--test/Feature/metadata.ll6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/Feature/metadata.ll b/test/Feature/metadata.ll
index d43815be46a..9856b375495 100644
--- a/test/Feature/metadata.ll
+++ b/test/Feature/metadata.ll
@@ -1,9 +1,11 @@
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
; PR7105
-define void @foo() {
+define void @foo(i32 %x) {
call void @llvm.zonk(metadata !1, i64 0, metadata !1)
- ret void
+ store i32 0, i32* null, !whatever !0, !whatever_else !{}, !more !{metadata !"hello"}
+ store i32 0, i32* null, !whatever !{i32 %x, metadata !"hello", metadata !1, metadata !{}, metadata !2}
+ ret void, !whatever !{i32 %x}
}
declare void @llvm.zonk(metadata, i64, metadata) nounwind readnone