summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr19689.c
blob: d950315f237347752e42b62be05051233782488b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-require-effective-target int32plus } */
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;
}