OSDN Git Service

* gcc.c-torture/compile/20080625-1.c: Skip for M32C.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / compile / 20060419-1.c
1 /* This failed because if conversion didn't handle insv patterns properly.  */
2
3 union y
4 {
5   int a;
6   unsigned short b;
7 };
8
9 extern void bar (unsigned short u, union y v);
10
11 void
12 foo (int check)
13 {
14   union y x;
15
16   if (check != 0)
17     x.b = 1;
18   else
19     x.b = 2;
20   bar (x.b, x);
21 }