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
* examples: New directory.
[pf3gnuchains/gcc-fork.git]
/
contrib
/
reghunt
/
examples
/
28970.c
1
extern void abort (void);
2
3
int tar (int i)
4
{
5
if (i != 36863)
6
abort ();
7
return -1;
8
}
9
10
void bug(int q, int bcount)
11
{
12
int j = 0;
13
int outgo = 0;
14
15
while(j != -1)
16
{
17
outgo++;
18
if (outgo > q-1)
19
outgo = q-1;
20
j = tar (outgo*bcount);
21
}
22
}
23
24
int main(void)
25
{
26
bug(5, 36863);
27
return 0;
28
}