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
* intrinsics/access.c: Include <stdlib.h>.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
20030612-1.c
blob
00db20a22b093dafaf40decf1f50e7cbf6b61e3c
1
/* { dg-do run } */
2
/* { dg-options "-O2" } */
3
4
extern
void
abort
(
void
);
5
6
int
A
,
B
;
7
8
void
foo
()
9
{
10
long
x
=
3
;
11
(
void
)({
12
A
=
B
+
x
+ ((
1
) -
1
);
13
return
;
/* { dg-warning "statement-expressions should end with a non-void expression" "" { xfail *-*-* } } */
14
});
15
}
16
17
int
18
main
()
19
{
20
B
=
5
;
21
foo
();
22
if
(
A
!=
8
)
23
abort
();
24
return
0
;
25
}