Files
clang-p2996/lld/test/wasm/Inputs/comdat1.ll
Sam Clegg 262e09018b [WebAssembly] Remove final -wasm component of target triple. NFC.
This has been the default for a while now.

llvm-svn: 332009
2018-05-10 17:59:41 +00:00

14 lines
326 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 @callInline1() {
entry:
ret i32 ptrtoint (i32 ()* @inlineFn to i32)
}