blob: 231682f8adfda9cef04570691accb3a3a52a6c3f [file] [log] [blame]
// { dg-do compile { target c++26 } }
// Test consteval blocks, as specified by P2996.
consteval {
template <class T> // { dg-error "template declaration cannot appear at block scope" }
struct X { };
template <class T> // { dg-error "template declaration cannot appear at block scope" }
concept C = true;
return; // OK
}