2 /* { dg-options "-std=c23" } */
6 int : nullptr; /* { dg-error "not an integer constant" } */
9 enum E
{ X
= nullptr }; /* { dg-error "not an integer constant" } */
11 alignas(nullptr) int g
; /* { dg-error "not an integer constant" } */
13 int arr
[10] = { [nullptr] = 1 }; /* { dg-error "not of integer type" } */
15 _Static_assert (nullptr, "nullptr"); /* { dg-error "not an integer" } */
20 case nullptr: /* { dg-error "an integer constant" } */
25 case 1 ... nullptr: /* { dg-error "an integer constant" } */
30 case nullptr ... 2: /* { dg-error "an integer constant" } */