blob: cf6f088a00f527b5bb069798c41df1795eb9b4ec [file] [log] [blame]
// { dg-do compile }
// { dg-options "-std=c++2a" }
consteval int foo (int x) { return x; }
int d = 6; // { dg-bogus "'int d' is not const" }
bool e = __builtin_has_attribute (foo (d), packed); // { dg-bogus "the value of 'd' is not usable in a constant expression" }