2009-04-04 15:22:01 +08:00
|
|
|
; RUN: llvm-as < %s | llvm-dis | not grep undef
|
|
|
|
|
2009-07-23 01:43:22 +08:00
|
|
|
declare i8 @llvm.something(metadata %a, i32 %b, metadata %c)
|
2009-04-04 15:22:01 +08:00
|
|
|
|
2009-07-23 01:43:22 +08:00
|
|
|
;; Simple MDNode
|
|
|
|
!21 = metadata !{i17 123, null, metadata !"foobar"}
|
2009-04-04 15:22:01 +08:00
|
|
|
|
|
|
|
define void @foo() {
|
2009-07-23 01:43:22 +08:00
|
|
|
;; Intrinsic using MDNode and MDString
|
|
|
|
%x = call i8 @llvm.something(metadata !21, i32 42, metadata !"bar")
|
2009-04-04 15:22:01 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2009-07-23 09:07:34 +08:00
|
|
|
;; Test forward reference
|
|
|
|
declare i8 @llvm.f2(metadata %a)
|
|
|
|
define void @f2() {
|
|
|
|
%x = call i8 @llvm.f2(metadata !2)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
!2 = metadata !{i32 420}
|