Home | History | Annotate | Download | only in GlobalOpt
      1 ; RUN: opt < %s -globalopt -S | FileCheck %s
      2 
      3 @x = internal global i8* zeroinitializer
      4 
      5 define void @f() {
      6 ; CHECK: @f
      7 
      8 ; Check that we don't hit an assert in Constant::IsThreadDependent()
      9 ; when storing this blockaddress into a global.
     10 
     11   store i8* blockaddress(@g, %here), i8** @x, align 8
     12   ret void
     13 }
     14 
     15 define void @g() {
     16 ; CHECK: @g
     17 
     18 here:
     19   ret void
     20 }
     21