aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/ifreg.c
blob: a9bef17ff57f5c31ffdae37a192c25c11ef7e7b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-additional-options "-std=gnu89" } */

union foo
{
  float f;
  int i;
};

foo (int a, float c)
{
  union foo b;
  b.i = a;
  return b.f + c;
}