summaryrefslogtreecommitdiffstats
path: root/lld/test/wasm/Inputs/comdat1.ll
blob: 12678b0eeff760dc4290b57355ba117b0606c5f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
}
OpenPOWER on IntegriCloud