summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/two-types-6.c
blob: 1c55549162c2e67e019a80f683d03ce947a434d0 (plain)
1
2
3
4
5
6
7
/* { dg-do compile } */
/* { dg-options "-std=gnu89" } // suppress default -pedantic-errors */

struct s {
  struct f {} /* dg-warning "does not declare anything" "" } */
  struct g {} x; /* { dg-error "expected ';', identifier or " "" } */
};