1 // https://github.com/llvm/llvm-project/issues/54457
5 // RUN: split-file %s %t
7 // RUN: %clang_cc1 -std=c++20 %t/A.cppm -verify -S -o -
8 // RUN: %clang_cc1 -std=c++20 %t/B.cppm -verify -S -o -
9 // RUN: %clang_cc1 -std=c++20 %t/C.cppm -emit-module-interface -o %t/C.pcm
10 // RUN: %clang_cc1 -std=c++20 %t/UseC.cppm -fprebuilt-module-path=%t -verify -S -o -
12 // RUN: %clang_cc1 -std=c++20 %t/C.cppm -emit-reduced-module-interface -o %t/C.pcm
13 // RUN: %clang_cc1 -std=c++20 %t/UseC.cppm -fprebuilt-module-path=%t -verify -S -o -
16 // expected-no-diagnostics
19 export template<typename T>
31 // expected-no-diagnostics
34 export template<typename T>
36 friend constexpr auto f(s) -> s {
42 constexpr auto first = f(s<int>());
46 // expected-no-diagnostics
49 export template<typename StandardCharT, int N>
50 struct basic_symbol_text {
52 constexpr friend basic_symbol_text operator+(
53 const basic_symbol_text&, const basic_symbol_text<char, N2>&) noexcept
55 return basic_symbol_text{};
59 constexpr auto xxx = basic_symbol_text<char, 1>{} + basic_symbol_text<char, 1>{};
62 // expected-no-diagnostics