1target triple = "wasm32-unknown-unknown" 2 3define hidden void @myctor() { 4entry: 5 ret void 6} 7 8define hidden void @mydtor() { 9entry: 10 %ptr = alloca i32 11 ret void 12} 13 14@llvm.global_ctors = appending global [3 x { i32, void ()*, i8* }] [ 15 { i32, void ()*, i8* } { i32 2002, void ()* @myctor, i8* null }, 16 { i32, void ()*, i8* } { i32 101, void ()* @myctor, i8* null }, 17 { i32, void ()*, i8* } { i32 202, void ()* @myctor, i8* null } 18] 19 20@llvm.global_dtors = appending global [3 x { i32, void ()*, i8* }] [ 21 { i32, void ()*, i8* } { i32 2002, void ()* @mydtor, i8* null }, 22 { i32, void ()*, i8* } { i32 101, void ()* @mydtor, i8* null }, 23 { i32, void ()*, i8* } { i32 202, void ()* @mydtor, i8* null } 24] 25