bolt/deps/llvm-18.1.8/clang/test/CodeGen/WebAssembly/wasm-import-module.c
2025-02-14 19:21:04 +01:00

11 lines
292 B
C

// 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" {{.*}}}