summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-struct-ini-1.c
blob: ac1734314b7c038a1ff6d2a6377f141dcee1f484 (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
/*
   struct-ini-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

#if 0
struct S
{
  char f1;
  int f2[2];
};

struct S object = {'X', 8, 9};
#endif

void
testTortureExecute (void)
{
#if 0
  if (object.f1 != 'X' || object.f2[0] != 8 || object.f2[1] != 9)
    ASSERT (0);
  return;
#endif
}