llvm.org GIT mirror llvm / db3a9bc
Fix 2-field llvm.global_ctors `REQUIRES: asserts` tests after rL360742 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360743 91177308-0d34-0410-b5e6-96231b3b80d8 Fangrui Song 1 year, 6 months ago
3 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: %lli %s > /dev/null
11 ; XFAIL: darwin
22 @var = global i32 1, align 4
3 @llvm.global_ctors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @ctor_func }]
4 @llvm.global_dtors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @dtor_func }]
3 @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @ctor_func, i8* null }]
4 @llvm.global_dtors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @dtor_func, i8* null }]
55
66 define i32 @main() nounwind {
77 entry:
135135 target triple = "x86_64-apple-macosx10.11.0"
136136
137137
138 @llvm.global_ctors = appending global [1 x { i32, void ()* }] [{ i32, void ()* } { i32 65535, void ()* @_GLOBAL__I_a }]
138 @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @_GLOBAL__I_a, i8* null }]
139139
140140 declare void @baz()
141141
99 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
1010 target triple = "x86_64-unknown-linux-gnu"
1111
12 %0 = type { i32, void ()* }
12 %0 = type { i32, void ()*, i8* }
1313 %1 = type { i64, i1 }
1414 %"class.std::vector" = type { [24 x i8] }
1515
1616 @vi = global %"class.std::vector" zeroinitializer, align 8
1717 @__dso_handle = external unnamed_addr global i8*
1818 @vp = global %"class.std::vector" zeroinitializer, align 8
19 @llvm.global_ctors = appending global [1 x %0] [%0 { i32 65535, void ()* @_GLOBAL__I_a }]
19 @llvm.global_ctors = appending global [1 x %0] [%0 { i32 65535, void ()* @_GLOBAL__I_a, i8* null }]
2020
2121 define linkonce_odr void @_ZNSt6vectorIlSaIlEED1Ev(%"class.std::vector"* nocapture %this) unnamed_addr align 2 {
2222 entry: