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
c++: prvalue of array type [PR111286]
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wsequence-point-2.c
blob
1e85e273e34ba514fb7c9c9f811daa1701a9fe8a
1
/* PR c/69661 - missing -Wsequence-point warning
2
{ dg-do compile }
3
{ dg-options "-Wall" } */
4
5
int
a
,
b
;
6
short
c
;
7
8
void
fn1
(
int
p
) { (
void
)
p
; }
9
10
void
fn2
(
void
)
11
{
12
fn1
(
a
== (
c
&=
a
=
b
));
/* { dg-warning "\\\[-Wsequence-point\\\]" } */
13
}