summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr32244-1.c
blob: afad25650c445c0182ef8e6e67d2ec458dd64fe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
struct foo
{
  unsigned long long b:40;
} x;

extern void abort (void);

void test1(unsigned long long res)
{
  /* The shift is carried out in 40 bit precision.  */
  if (x.b<<32 != res)
    abort ();
}

int main()
{
  x.b = 0x0100;
  test1(0);
  return 0;
}