[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / WebAssembly / wasm-import-module.c
blob866a3a459949bc9f26b5e5b3a3eaf062b92a1589
1 // RUN: %clang_cc1 -triple wasm32-unknown-unknown-wasm -emit-llvm -o - %s | FileCheck %s
3 void __attribute__((import_module("bar"))) foo(void);
5 void call(void) {
6 foo();
9 // CHECK: declare void @foo() [[A:#[0-9]+]]
11 // CHECK: attributes [[A]] = {{{.*}} "wasm-import-module"="bar" {{.*}}}