summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-struct-ini-3.c
blob: 84344475d72b9e15110140c5c19f95542d4e75c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
   struct-ini-3.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

struct
{
  unsigned int f1:1, f2:1, f3:3, f4:3, f5:2, f6:1, f7:1;
} result = {1, 1, 7, 7, 3, 1, 1};

void
testTortureExecute (void)
{
  if ((result.f3 & ~7) != 0 || (result.f4 & ~7) != 0)
    ASSERT (0);
  return;
}