From 5df36aae6442dbc915e71d1f0339b615af064b1b Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Fri, 15 Feb 2019 20:49:05 +0000 Subject: Vendor import of clang release_80 branch r354130: https://llvm.org/svn/llvm-project/cfe/branches/release_80@354130 --- test/CodeGen/wasm-import-module.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/CodeGen/wasm-import-module.c (limited to 'test/CodeGen/wasm-import-module.c') diff --git a/test/CodeGen/wasm-import-module.c b/test/CodeGen/wasm-import-module.c new file mode 100644 index 000000000000..866a3a459949 --- /dev/null +++ b/test/CodeGen/wasm-import-module.c @@ -0,0 +1,11 @@ +// RUN: %clang_cc1 -triple wasm32-unknown-unknown-wasm -emit-llvm -o - %s | FileCheck %s + +void __attribute__((import_module("bar"))) foo(void); + +void call(void) { + foo(); +} + +// CHECK: declare void @foo() [[A:#[0-9]+]] + +// CHECK: attributes [[A]] = {{{.*}} "wasm-import-module"="bar" {{.*}}} -- cgit v1.3