Debian Codegraph @

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

raw
1 // { dg-do compile { target c++20 } }
2 // { dg-additional-options "-fconcepts" }
3
4 template<class X>
5 concept C =
6 requires(X x, bool b) {
7 requires b; // { dg-error "not a constant expression" }
8 x++;
9 };
10
11 int main() {
12 C<int>;
13 return 0;
14 }