summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20001203-1.c
blob: 63bc16918c5485416f3c72370bf4430f4ac862c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
   20001203-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

/* Origin: PR c/410 from Jan Echternach
   <jan.echternach@informatik.uni-rostock.de>,
   adapted to a testcase by Joseph Myers <jsm28@cam.ac.uk>.
*/

static void
foo (void)
{
  struct {
    long a;
    char b[1];
  } x = { 2, { 0 } };
}

void
testTortureExecute (void)
{
  int tmp;
  foo ();
  tmp = 1;
  return;
}