aboutsummaryrefslogtreecommitdiff
path: root/test/Linker/module-flags-3-a.ll
blob: e7a720e9c0241c6534f73250f1e6bafb5f7fe9b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; RUN: llvm-link %s %p/module-flags-3-b.ll -S -o - | sort | FileCheck %s

; Test 'require' behavior.

; CHECK: !0 = metadata !{i32 1, metadata !"foo", i32 37}
; CHECK: !1 = metadata !{i32 1, metadata !"bar", i32 42}
; CHECK: !2 = metadata !{i32 3, metadata !"foo", metadata !3}
; CHECK: !3 = metadata !{metadata !"bar", i32 42}
; CHECK: !llvm.module.flags = !{!0, !1, !2}

!0 = metadata !{ i32 1, metadata !"foo", i32 37 }
!1 = metadata !{ i32 1, metadata !"bar", i32 42 }

!llvm.module.flags = !{ !0, !1 }