1 /* { dg-do compile } */
2 /* { dg-options "-std=c99" } */
3 /* PR c/84900; casts from compound literals
4 were not considered a non-lvalue. */
5
6 int main() {
7 int *p = &(int) (int) {0}; /* { dg-error "lvalue" } */
8 return 0;
9 }