blob: 8898d72d51016b45d9ee94583bbbbc357ef08c68 [file] [log] [blame]
Teresa Johnson1fd5bb92017-05-23 00:08:00 +00001; RUN: llvm-link %s %p/Inputs/module-flags-pic-2-b.ll -S -o - | FileCheck %s
Justin Hibbits893f22f2014-11-07 04:46:10 +00002
Teresa Johnson1fd5bb92017-05-23 00:08:00 +00003; test linking modules with two different PIC and PIE levels
Justin Hibbits893f22f2014-11-07 04:46:10 +00004
Teresa Johnson1fd5bb92017-05-23 00:08:00 +00005!0 = !{ i32 7, !"PIC Level", i32 1 }
6!1 = !{ i32 7, !"PIE Level", i32 1 }
Justin Hibbits893f22f2014-11-07 04:46:10 +00007
Teresa Johnson1fd5bb92017-05-23 00:08:00 +00008!llvm.module.flags = !{!0, !1}
Justin Hibbits893f22f2014-11-07 04:46:10 +00009
Teresa Johnson1fd5bb92017-05-23 00:08:00 +000010; CHECK: !0 = !{i32 7, !"PIC Level", i32 2}
11; CHECK: !1 = !{i32 7, !"PIE Level", i32 2}