mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
a62270de2c
The reversion apparently deleted the test/Transforms directory. Will be re-reverting again. llvm-svn: 358552
24 lines
396 B
LLVM
24 lines
396 B
LLVM
; RUN: opt < %s -globalopt -S | FileCheck %s
|
|
|
|
@x = internal global i8* zeroinitializer
|
|
|
|
define void @f() {
|
|
; CHECK-LABEL: @f(
|
|
|
|
; Check that we don't hit an assert in Constant::IsThreadDependent()
|
|
; when storing this blockaddress into a global.
|
|
|
|
store i8* blockaddress(@g, %here), i8** @x, align 8
|
|
ret void
|
|
}
|
|
|
|
define void @g() {
|
|
entry:
|
|
br label %here
|
|
|
|
; CHECK-LABEL: @g(
|
|
|
|
here:
|
|
ret void
|
|
}
|