diff options
Diffstat (limited to 'lld/test/wasm/Inputs')
-rw-r--r-- | lld/test/wasm/Inputs/archive2.ll | 5 | ||||
-rw-r--r-- | lld/test/wasm/Inputs/archive3.ll | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lld/test/wasm/Inputs/archive2.ll b/lld/test/wasm/Inputs/archive2.ll index c4903cb900b..66bfeac5ac6 100644 --- a/lld/test/wasm/Inputs/archive2.ll +++ b/lld/test/wasm/Inputs/archive2.ll @@ -7,3 +7,8 @@ entry: %call = tail call i32 @foo() #2 ret i32 %call } + +define void @archive2_symbol() local_unnamed_addr #0 { +entry: + ret void +} diff --git a/lld/test/wasm/Inputs/archive3.ll b/lld/test/wasm/Inputs/archive3.ll new file mode 100644 index 00000000000..8c78a464f49 --- /dev/null +++ b/lld/test/wasm/Inputs/archive3.ll @@ -0,0 +1,11 @@ +target triple = "wasm32-unknown-unknown" + +define i32 @bar() local_unnamed_addr #0 { +entry: + ret i32 1 +} + +define void @archive3_symbol() local_unnamed_addr #0 { +entry: + ret void +} |