summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c90-anon-struct-1.c
blob: a3eb7f7e392d78efe5b9508d2c7655fe91d14f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Test for anonymous structures and unions not permitted in C90.  */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1990 -pedantic-errors" } */

struct s
{
  int a;
  struct
  {
    int b;
  }; /* { dg-error "unnamed structs" } */
};