1 ; RUN: llvm-dis < %s.bc | FileCheck %s
3 ; Check that metadata encoded in 3.5 is correctly understood going forward.
5 ; Bitcode assembled by llvm-as v3.5.0.
7 define void @foo(i32 %v) {
10 ; CHECK-NEXT: call void @llvm.bar(metadata !0)
11 call void @llvm.bar(metadata !0)
13 ; CHECK-NEXT: ret void, !baz !1
17 declare void @llvm.bar(metadata)
19 @global = global i32 0
21 ; CHECK: !0 = !{!1, !2, i32* @global, null}
22 ; CHECK: !1 = !{!2, null}
24 !0 = metadata !{metadata !1, metadata !2, i32* @global, null}
25 !1 = metadata !{metadata !2, null}