summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr32374.c
blob: de15d559f5b1a1c5c0c51a3fbbbf4514cee56815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-O2" } */

extern int *stderr;

void f (int *, const char *, ...);

void g (const char *conf_name)
{
  typedef struct
  {
    const char *label;
    const int value;
  } Section;

  const Section sections[2] = { {"", 0}, {"", 1} };

  f (stderr, "", "", conf_name, 0, sections[0]);
  f (stderr, "", "", conf_name, 0, sections[0]);
}