17 lines
322 B
C++
17 lines
322 B
C++
|
// RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s
|
||
|
// expected-no-diagnostics
|
||
|
|
||
|
template<typename T> concept C = true;
|
||
|
|
||
|
struct A {
|
||
|
template<C T> void f();
|
||
|
};
|
||
|
|
||
|
auto L = []<C T>{};
|
||
|
|
||
|
template<typename X>
|
||
|
class Friends {
|
||
|
template<C T> friend void A::f();
|
||
|
template<C T> friend void decltype(L)::operator()();
|
||
|
};
|