Files
clang-p2996/lld/test/wasm/Inputs/comdat2.ll
Sam Clegg 65d6380cd6 [WebAssembly] Allow signautre of entry function to be flexible
Since we a no longer using this function for the wasm start
section we don't actually care what its signature is.

Differential Revision: https://reviews.llvm.org/D46594

llvm-svn: 332308
2018-05-14 23:01:16 +00:00

14 lines
324 B
LLVM

target triple = "wasm32-unknown-unknown"
$inlineFn = comdat any
@constantData = weak_odr constant [3 x i8] c"abc", comdat($inlineFn)
define linkonce_odr i32 @inlineFn() comdat {
entry:
ret i32 ptrtoint ([3 x i8]* @constantData to i32)
}
define i32 @callInline2() {
entry:
ret i32 ptrtoint (i32 ()* @inlineFn to i32)
}