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
Fix broken MinGW build of gcc.c
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wsequence-point-1.c
blob
60dd55bbb08677cd4b1e3859ff571842ea5c2404
1
/* PR c++/57274 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wsequence-point" } */
4
5
void
foo
(
int
,
int
);
6
7
void
8
bar
(
int
*
x
)
9
{
10
foo
(*
x
++,
sizeof
(*
x
));
/* { dg-bogus "may be undefined" } */
11
}
12
13
void
14
baz
(
int
*
x
)
15
{
16
foo
(*
x
,
sizeof
(*
x
++) +
sizeof
(*
x
++));
/* { dg-bogus "may be undefined" } */
17
}