add testcase for union cast
[cparser] / parsetest / gnu99 / union_cast.c
1 union foo { int i; double d; };
2 int x;
3 double y;
4
5 union foo u;
6
7 void hack (union foo p) {
8         y = p.d;
9 }
10
11 int main(int argc, char *argv[]) {
12         u = (union foo) x;
13
14         hack ((union foo) x);
15         return 0;
16 }