2010-05-10 20:53:17 +00:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis
|
|
|
|
; PR7105
|
|
|
|
|
2010-08-24 02:24:03 +00:00
|
|
|
define void @foo(i32 %x) {
|
2010-05-10 20:53:17 +00:00
|
|
|
call void @llvm.zonk(metadata !1, i64 0, metadata !1)
|
2010-08-24 02:24:03 +00:00
|
|
|
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}
|
2010-05-10 20:53:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
declare void @llvm.zonk(metadata, i64, metadata) nounwind readnone
|
|
|
|
|
|
|
|
!named = !{!0}
|
2010-07-13 19:42:44 +00:00
|
|
|
!another_named = !{}
|
2010-05-10 20:53:17 +00:00
|
|
|
!0 = metadata !{i8** null}
|
2010-07-13 19:33:27 +00:00
|
|
|
!1 = metadata !{i8* null, metadata !2}
|
|
|
|
!2 = metadata !{}
|