Allow specifying an import module using @wasm #1305.

This commit is contained in:
Christoffer Lerno
2024-09-24 21:31:48 +02:00
parent d067a31ce6
commit a258f2084f
8 changed files with 84 additions and 7 deletions

View File

@@ -0,0 +1,5 @@
fn void test() @wasm("hello", "world") { } // #error: Specifying a wasm import module
extern fn void test2() @wasm("a", "b", "c"); // #error: Too many arguments to
extern fn void test3() @extern("hello") @wasm("a"); // #error: An external name
extern fn void test4() @extern("hello") @wasm("a", "b"); // #error: An external name