xref: /llvm-project/clang/test/CodeGen/WebAssembly/wasm-import-module.c (revision 822c5c50849a1f762c920d59baaa6a6edbb657ee)
1 // RUN: %clang_cc1 -triple wasm32-unknown-unknown-wasm -emit-llvm -o - %s | FileCheck %s
2 
3 void __attribute__((import_module("bar"))) foo(void);
4 
call(void)5 void call(void) {
6   foo();
7 }
8 
9 // CHECK: declare void @foo() [[A:#[0-9]+]]
10 
11 // CHECK: attributes [[A]] = {{{.*}} "wasm-import-module"="bar" {{.*}}}
12