☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-requires40.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/concepts-requires40.C
code
plain
raw
1
// PR c++/118060
2
// { dg-do compile { target c++20 } }
3
4
int* f(int);
5
6
template<class T>
7
struct A {
8
template<class U> requires requires (U u) { *f(u); }
9
A(T, U);
10
};
11
12
A a{0, 0};