1 ; Test that global constructors behind casts are run
3 ; RUN: lli -jit-kind=orc %s | FileCheck %s
9 @.str = private constant [12 x i8] c"constructor\00"
10 @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 1, ptr @constructor, ptr null }]
12 define internal i32 @constructor() #0 {
13 %call = tail call i32 @puts(ptr @.str)