2017-05-23 02:08:00 +02:00
|
|
|
; RUN: llvm-link %s %p/Inputs/module-flags-pic-2-b.ll -S -o - | FileCheck %s
|
2014-11-07 05:46:10 +01:00
|
|
|
|
2017-05-23 02:08:00 +02:00
|
|
|
; test linking modules with two different PIC and PIE levels
|
2014-11-07 05:46:10 +01:00
|
|
|
|
2017-05-23 02:08:00 +02:00
|
|
|
!0 = !{ i32 7, !"PIC Level", i32 1 }
|
|
|
|
!1 = !{ i32 7, !"PIE Level", i32 1 }
|
2014-11-07 05:46:10 +01:00
|
|
|
|
2017-05-23 02:08:00 +02:00
|
|
|
!llvm.module.flags = !{!0, !1}
|
2014-11-07 05:46:10 +01:00
|
|
|
|
2017-05-23 02:08:00 +02:00
|
|
|
; CHECK: !0 = !{i32 7, !"PIC Level", i32 2}
|
|
|
|
; CHECK: !1 = !{i32 7, !"PIE Level", i32 2}
|