summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gnu89-init-3.c
blob: bd4283ec875e61f3dca5119ac6843c3ad7432942 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR 11527 */
/* { dg-do compile } */
/* { dg-options "-std=gnu89" } */

typedef struct smrdd_memory_blocks_s
{
  int blocks;
  int block[];
} smrdd_memory_blocks_t;

const smrdd_memory_blocks_t smrdd_memory_blocks =
{
  3,
  {
    [5] = 5,
    [1] = 2,
  }
};