mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 06:04:47 +00:00
Add a testcase reduced from clang lto bootstrap on OS X.
llvm-svn: 222921
This commit is contained in:
parent
dc3f8f7176
commit
3962e8e2eb
13
test/Linker/Inputs/opaque.ll
Normal file
13
test/Linker/Inputs/opaque.ll
Normal file
@ -0,0 +1,13 @@
|
||||
%A = type { }
|
||||
%B = type { %D, %E, %B* }
|
||||
|
||||
%D = type { %E }
|
||||
%E = type opaque
|
||||
|
||||
@g2 = external global %A
|
||||
@g3 = external global %B
|
||||
|
||||
define void @f1() {
|
||||
getelementptr %A* null, i32 0
|
||||
ret void
|
||||
}
|
21
test/Linker/opaque.ll
Normal file
21
test/Linker/opaque.ll
Normal file
@ -0,0 +1,21 @@
|
||||
; RUN: llvm-link %p/opaque.ll %p/Inputs/opaque.ll -S -o - | FileCheck %s
|
||||
|
||||
; CHECK-DAG: %A = type {}
|
||||
; CHECK-DAG: %B = type { %C, %C, %B* }
|
||||
; CHECK-DAG: %B.1 = type { %D, %E, %B.1* }
|
||||
; CHECK-DAG: %C = type { %A }
|
||||
; CHECK-DAG: %D = type { %E }
|
||||
; CHECK-DAG: %E = type opaque
|
||||
|
||||
; CHECK-DAG: @g1 = external global %B
|
||||
; CHECK-DAG: @g2 = external global %A
|
||||
; CHECK-DAG: @g3 = external global %B.1
|
||||
|
||||
; CHECK-DAG: getelementptr %A* null, i32 0
|
||||
|
||||
%A = type opaque
|
||||
%B = type { %C, %C, %B* }
|
||||
|
||||
%C = type { %A }
|
||||
|
||||
@g1 = external global %B
|
Loading…
x
Reference in New Issue
Block a user