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 | |
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 |