]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/wasm/Inputs/comdat1.ll
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / wasm / Inputs / comdat1.ll
1 target triple = "wasm32-unknown-unknown"
2
3 $inlineFn = comdat any
4 @constantData = weak_odr constant [3 x i8] c"abc", comdat($inlineFn)
5 define linkonce_odr i32 @inlineFn() comdat {
6 entry:
7   ret i32 ptrtoint ([3 x i8]* @constantData to i32)
8 }
9
10 define i32 @callInline1() {
11 entry:
12     ret i32 ptrtoint (i32 ()* @inlineFn to i32)
13 }