summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-pr71700.c
blob: b635ee5a624fce7761508845b69cee5b0d618411 (plain)
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
/*
   pr71700.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

struct S
{
  signed f0 : 16;
  unsigned f1 : 1;
};

int b;
static struct S c[] = {{-1, 0}, {-1, 0}};
struct S d;

void
testTortureExecute (void)
{
#if 0 // TODO: Enable when SDCC supports struct initalization by assignment!
  struct S e = c[0];
  d = e;
  if (d.f1 != 0)
    ASSERT (0);
  return;
#endif
}