OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Formatting fixes.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
20030612-1.c
1
/* { dg-do run } */
2
/* { dg-options "-O2" } */
3
4
int A, B;
5
6
void foo()
7
{
8
long x = 3;
9
(void)({
10
A = B + x + ((1) - 1);
11
return; /* { dg-warning "statement-expressions should end with a non-void expression" "" { xfail *-*-* } } */
12
});
13
}
14
15
main()
16
{
17
B = 5;
18
foo();
19
if (A != 8)
20
abort ();
21
return 0;
22
}