Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/20060419-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 } |