Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-attrib1.C

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 }