about summary refs log tree commit diff
path: root/src/test/ui/wasm/wasm-import-module.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/wasm/wasm-import-module.rs')
-rw-r--r--src/test/ui/wasm/wasm-import-module.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/wasm/wasm-import-module.rs b/src/test/ui/wasm/wasm-import-module.rs
new file mode 100644
index 00000000000..4152a1065ca
--- /dev/null
+++ b/src/test/ui/wasm/wasm-import-module.rs
@@ -0,0 +1,10 @@
+#[link(name = "...", wasm_import_module)] //~ ERROR: must be of the form
+extern "C" {}
+
+#[link(name = "...", wasm_import_module(x))] //~ ERROR: must be of the form
+extern "C" {}
+
+#[link(name = "...", wasm_import_module())] //~ ERROR: must be of the form
+extern "C" {}
+
+fn main() {}