summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr19689.c
blob: 608415f3693a57bae540e3c68d7dceb9cabe24fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
extern void abort (void);

struct
{
  int b : 29;
} f;

void foo (short j)
{
  f.b = j;
}

int main()
{
  foo (-55);
  if (f.b != -55)
    abort ();
  return 0;
}