comparison gcc/testsuite/c-c++-common/pr70756.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
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 }