summaryrefslogtreecommitdiffstats
path: root/llvm/test/Linker/module-flags-pic-2-a.ll
blob: 8898d72d51016b45d9ee94583bbbbc357ef08c68 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: llvm-link %s %p/Inputs/module-flags-pic-2-b.ll -S -o - | FileCheck %s

; test linking modules with two different PIC and PIE levels

!0 = !{ i32 7, !"PIC Level", i32 1 }
!1 = !{ i32 7, !"PIE Level", i32 1 }

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

; CHECK: !0 = !{i32 7, !"PIC Level", i32 2}
; CHECK: !1 = !{i32 7, !"PIE Level", i32 2}
OpenPOWER on IntegriCloud