blob: 866a3a459949bc9f26b5e5b3a3eaf062b92a1589 [file] [log] [blame]
Dan Gohmanb4323692019-01-24 21:08:30 +00001// RUN: %clang_cc1 -triple wasm32-unknown-unknown-wasm -emit-llvm -o - %s | FileCheck %s
2
3void __attribute__((import_module("bar"))) foo(void);
4
5void call(void) {
6 foo();
7}
8
9// CHECK: declare void @foo() [[A:#[0-9]+]]
10
11// CHECK: attributes [[A]] = {{{.*}} "wasm-import-module"="bar" {{.*}}}