summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20031211-2.c
blob: b78a48990c42749fd981ecc2ea9d55753258fc6c (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
32
33
/*
   20031211-2.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

struct a
{
  unsigned int bitfield : 3;
};

void foo(unsigned int z);

void
testTortureExecute (void)
{
  struct a a;

  a.bitfield = 131;
  foo (a.bitfield);
  return;
}

void foo(unsigned int z)
{
  if (z != 3)
    ASSERT (0);
}