summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20020225-2.c
blob: 5c91596096bb481ade1a54af210d06faee5587b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
static int 
test(int x)
{
  union 
    {
      int i;
      double d;
  } a;
  a.d = 0;
  a.i = 1;
  return x >> a.i;
}

int main(void)
{
  if (test (5) != 2)
    abort ();
  exit (0);
}