mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
18 lines
462 B
Plaintext
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" }
|