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
* gcc.dg/predict-12.c: New testcase.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Woverride-init-side-effects-2.c
blob
5927189f00b378c25c1ea46a16e7e935084eaa14
1
/* PR c/64918 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wno-override-init-side-effects" } */
4
5
struct
S
{
int
m
,
n
; };
6
union
U
{
short
s
;
long int
l
; };
7
8
void
9
foo
(
int
i
)
10
{
11
int
a
[] = {
12
[
0
] = ++
i
,
13
[
1
] =
i
,
14
[
0
] =
42
15
};
16
struct
S s
= {
17
.
n
= ++
i
,
18
.
m
=
i
,
19
.
n
=
i
20
};
21
union
U u
= {
22
.
s
=
i
--,
23
.
l
=
42
24
};
25
}