☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
concepts-attrib1.C
☽
☼
gcc/testsuite/g++.dg/cpp2a/concepts-attrib1.C
code
plain
raw
1
// PR c++/92739
2
// { dg-do compile { target concepts } }
3
4
template <class T>
5
concept C = true;
6
7
template <class T>
8
requires C<T>
9
[[nodiscard]] int f(T t) {
10
return 22;
11
}
12
13
int main() {
14
return 0;
15
}