• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-link %s %p/module-flags-1-b.ll -S -o - | sort | FileCheck %s
2
3; Test basic functionality of module flags.
4
5; CHECK: !0 = !{i32 1, !"foo", i32 37}
6; CHECK: !1 = !{i32 2, !"bar", i32 42}
7; CHECK: !2 = !{i32 1, !"mux", !3}
8; CHECK: !3 = !{!"hello world", i32 927}
9; CHECK: !4 = !{i32 1, !"qux", i32 42}
10; CHECK: !llvm.module.flags = !{!0, !1, !2, !4}
11
12!0 = !{ i32 1, !"foo", i32 37 }
13!1 = !{ i32 2, !"bar", i32 42 }
14!2 = !{ i32 1, !"mux", !{ !"hello world", i32 927 } }
15
16!llvm.module.flags = !{ !0, !1, !2 }
17