xref: /llvm-project/llvm/test/Linker/module-flags-pic-2-a.ll (revision c2a38887932e3a46aa3bee35f3f5568ac68282f4)
1; RUN: llvm-link %s %p/Inputs/module-flags-pic-2-b.ll -S -o - | FileCheck %s
2
3; test linking modules with two different PIC and PIE levels
4
5!0 = !{ i32 8, !"PIC Level", i32 1 }
6!1 = !{ i32 7, !"PIE Level", i32 1 }
7
8!llvm.module.flags = !{!0, !1}
9
10; CHECK: !0 = !{i32 8, !"PIC Level", i32 1}
11; CHECK: !1 = !{i32 7, !"PIE Level", i32 2}
12