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 -
13 // expected-no-diagnostics
16 export template<typename T>
28 // expected-no-diagnostics
31 export template<typename T>
33 friend constexpr auto f(s) -> s {
39 constexpr auto first = f(s<int>());
43 // expected-no-diagnostics
46 export template<typename StandardCharT, int N>
47 struct basic_symbol_text {
49 constexpr friend basic_symbol_text operator+(
50 const basic_symbol_text&, const basic_symbol_text<char, N2>&) noexcept
52 return basic_symbol_text{};
56 constexpr auto xxx = basic_symbol_text<char, 1>{} + basic_symbol_text<char, 1>{};
59 // expected-no-diagnostics