repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
RISC-V: Add support for riscv-*-*.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
pr42025-1.c
blob
f19123eafa6e22924091c4965ea01730c750328c
1
typedef
void
*
Ptr
;
2
3
struct
A
4
{
5
int
i
;
6
union
7
{
8
Ptr p
;
9
char
*
q
;
10
}
u
;
11
};
12
13
static void
foo
(
struct
A
*
p
,
char
*
q
)
14
{
15
if
(
p
->
i
)
16
p
->
u
.
p
=
0
;
17
else
18
p
->
u
.
q
=
q
;
19
}
20
21
void
bar
(
struct
A
*
p
,
char
*
q
)
22
{
23
foo
(
p
,
q
);
24
}