aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/anon-struct-4.c
blob: dc30b0cc0baac4ff8d2df73d0ed2cebd65aae518 (plain)
1
2
3
4
5
6
7
8
9
10
/* Test anonymous structures with type qualifiers.  Bug 8420.  */
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
/* { dg-do compile } */
/* { dg-options "-std=gnu89" } */

struct s {
  struct { int a; };
  const struct { int b; };
  struct { int c; } volatile;
};