1 target triple = "wasm32-unknown-unknown"
5 @constantData = constant [3 x i8] c"abc", comdat($foo)
7 define i32 @comdatFn() comdat($foo) {
8 ret i32 ptrtoint (ptr @constantData to i32)
11 define internal void @do_init() comdat($foo) {
15 %0 = type { i32, ptr, ptr }
16 @llvm.global_ctors = appending global [1 x %0 ] [%0 { i32 65535, ptr @do_init, ptr null }]
18 ; Everything above this is part of the `foo` comdat group
20 define i32 @callComdatFn1() {
21 ret i32 ptrtoint (ptr @comdatFn to i32)