cgraph: A COMDAT decl always has non-zero address.
[gcc.git] / gcc / testsuite / c-c++-common / pr70756.c
1 /* PR c/70756 */
2 /* { dg-do compile } */
3 /* { dg-options "" } */
4
5 enum E e; /* { dg-error "storage size|use of enum" } */
6 int (*A)[];
7
8 void
9 fn0 (void)
10 {
11 struct
12 {
13 int x;
14 int y[];
15 } s;
16 1234 && &s.y + 1; /* { dg-error "16:invalid use of" } */
17 }
18
19 void
20 fn1 (void)
21 {
22 1234, A += 1; /* { dg-error "11:invalid use of array with unspecified bounds" } */
23 }