diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:17:27 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:17:27 +0000 |
commit | 67c32a98315f785a9ec9d531c1f571a0196c7463 (patch) | |
tree | 4abb9cbeecc7901726dd0b4a37369596c852e9ef /test/Linker/module-flags-pic-2-a.ll | |
parent | 9f61947910e6ab40de38e6b4034751ef1513200f (diff) |
Diffstat (limited to 'test/Linker/module-flags-pic-2-a.ll')
-rw-r--r-- | test/Linker/module-flags-pic-2-a.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Linker/module-flags-pic-2-a.ll b/test/Linker/module-flags-pic-2-a.ll new file mode 100644 index 000000000000..e09af6bcd128 --- /dev/null +++ b/test/Linker/module-flags-pic-2-a.ll @@ -0,0 +1,10 @@ +; RUN: not llvm-link %s %p/Inputs/module-flags-pic-2-b.ll -S -o - 2> %t +; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s + +; test linking modules with two different PIC levels + +!0 = !{ i32 1, !"PIC Level", i32 1 } + +!llvm.module.flags = !{!0} + +; CHECK-ERRORS: ERROR: linking module flags 'PIC Level': IDs have conflicting values |