repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20050131-1.c
blob
9fae91181d5be69f9fa9fd457887a21b7c4a3841
1
/* Verify that we do not lose side effects on a MOD expression. */
2
3
#include <stdlib.h>
4
#include <stdio.h>
5
6
int
7
foo
(
int
a
)
8
{
9
int
x
=
0
%
a
++;
10
return
a
;
11
}
12
13
main
()
14
{
15
if
(
foo
(
9
) !=
10
)
16
abort
();
17
exit
(
0
);
18
}