RISC-V: Add support for riscv-*-*.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / pr42025-1.c
blobf19123eafa6e22924091c4965ea01730c750328c
1 typedef void* Ptr;
3 struct A
5 int i;
6 union
8 Ptr p;
9 char *q;
10 } u;
13 static void foo(struct A *p, char *q)
15 if (p->i)
16 p->u.p = 0;
17 else
18 p->u.q = q;
21 void bar(struct A *p, char *q)
23 foo(p, q);