comparison gcc/testsuite/gcc.dg/c90-anon-struct-1.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 /* Test for anonymous structures and unions not permitted in C90. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=iso9899:1990 -pedantic-errors" } */
4
5 struct s
6 {
7 int a;
8 struct
9 {
10 int b;
11 }; /* { dg-error "unnamed structs" } */
12 };