Debian Codegraph @

gcc/testsuite/g++.dg/concepts/diagnostic11.C

raw
1 // { dg-do compile { target c++17_only } }
2
3 template <bool B>
4 requires B // { dg-error ".requires. does not name a type" }
5 // { dg-message ".requires. only available with" "" { target *-*-* } .-1 }
6 void foo() { }