3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 -emit-module-interface %t/foo.cppm -o %t/foo.pcm
6 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/Use.cpp -verify -fsyntax-only
8 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/foo.cppm -o %t/foo.pcm
9 // RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t %t/Use.cpp -verify -fsyntax-only -DREDUCED
13 # 3 __FILE__ 1 // use the next physical line number here (and below)
41 export
template <typename T
>
55 // In reduced BMI, the foo2 template function is optimized out.
56 foo2
<short>(); // expected-error {{use of undeclared identifier 'foo2'}}
57 foo2
<int>(); // expected-error {{use of undeclared identifier 'foo2'}}
59 foo2
<short>(); // expected-error {{missing '#include'; 'foo2' must be declared before it is used}}
60 // expected-note@* {{declaration here is not visible}}
61 foo2
<int>(); // expected-error {{missing '#include'; 'foo2' must be declared before it is used}}
62 // expected-note@* {{declaration here is not visible}}