3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 %t/A.cppm -emit-module-interface -o %t/A.pcm
6 // RUN: %clang_cc1 -std=c++20 %t/B.cppm -fprebuilt-module-path=%t -emit-module-interface -o %t/B.pcm
7 // RUN: %clang_cc1 -fsyntax-only -std=c++20 -fprebuilt-module-path=%t -verify %t/C.cpp
11 export
extern "C" void foo(struct Bar
);
23 // expected-error@-1 {{declaration of 'foo' must be imported}}
24 // expected-note@A.cppm:2 {{declaration here is not visible}}