aboutsummaryrefslogtreecommitdiffstats
path: root/test/Linker/module-flags-pic-2-a.ll
blob: 3ff9c8ffe83015bf868ba9f1a9470fe6f9668033 (plain)
1
2
3
4
5
6
7
8
9
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 = metadata !{ i32 1, metadata !"PIC Level", i32 1 }

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

; CHECK-ERRORS: ERROR: linking module flags 'PIC Level': IDs have conflicting values