Files
c3c/test/test_suite/abi/wasm_extern.c3t
2023-11-13 17:20:46 +01:00

18 lines
462 B
Plaintext

// #target: wasm32
module test;
extern fn int get_abc();
fn int hello() @export("fgh")
{
return 1;
}
/* #expect: test.ll
target triple = "wasm32-unknown-unknown"
declare i32 @get_abc() #0
define i32 @fgh() #1
attributes #0 = { nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "wasm-import-name"="get_abc" }
attributes #1 = { nounwind uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "wasm-export-name"="fgh" }