Sign in
gnu
/
gcc
/
fba228e259dd5112851527f2dbb62c5601100985
/
.
/
gcc
/
testsuite
/
c-c++-common
/
Wsequence-point-2.c
blob: 1e85e273e34ba514fb7c9c9f811daa1701a9fe8a [
file
] [
log
] [
blame
]
/* PR c/69661 - missing -Wsequence-point warning
{ dg-do compile }
{ dg-options "-Wall" } */
int
a
,
b
;
short
c
;
void
fn1
(
int
p
)
{
(
void
)
p
;
}
void
fn2
(
void
)
{
fn1
(
a
==
(
c
&=
a
=
b
));
/* { dg-warning "\\\[-Wsequence-point\\\]" } */
}