gcc/testsuite/g++.dg/concepts/var-concept7.C
raw| 1 | // PR c++/85133 |
| 2 | // { dg-do compile { target c++17 } } |
| 3 | // { dg-options "-fconcepts" } |
| 4 | |
| 5 | /* The error with "concept bool" used to be "variable concept has no |
| 6 | initializer" which is much better. Let's at least test that we |
| 7 | do not crash. */ |
| 8 | |
| 9 | template<typename> concept C; // { dg-error "expected" } |
| 10 | |
| 11 | template<C...> struct A {}; // { dg-error "declared" } |
| 12 | |
| 13 | A<int> a; // { dg-error "" } |