3 // RUN: split-file %s %t
5 // RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux -emit-module-interface %t/a.cppm -o %t/A.pcm
6 // RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux -emit-module-interface -fprebuilt-module-path=%t %t/b.cppm -o %t/B.pcm
8 // Just check that this doesn't crash.
13 template <typename _Visitor>
14 void __do_visit(_Visitor &&__visitor) {
16 [](_V0 __v) -> _V0 { return __v; } (1);
23 __do_visit(Visitor());
29 template <typename _Visitor>
30 void __do_visit(_Visitor &&__visitor) {
33 // Check that we instantiate this lambda's call operator in 'f' below
34 // instead of the one in 'a.cppm' here; otherwise, we won't find a
35 // corresponding instantiation of the using declaration above.
36 [](_V0 __v) -> _V0 { return __v; } (1);