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
* gcc.dg/tls/tls.exp: Remove temporary file.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
20020616-1.c
1
/* PR opt/6722 */
2
/* { dg-do run { target i?86-*-* } } */
3
/* { dg-options "-O2" } */
4
5
register int k asm("%ebx");
6
7
void __attribute__((noinline))
8
foo()
9
{
10
k = 1;
11
}
12
13
void test()
14
{
15
int i;
16
for (i = 0; i < 10; i += k)
17
{
18
k = 0;
19
foo();
20
}
21
}
22
23
int main()
24
{
25
int old = k;
26
test();
27
k = old;
28
return 0;
29
}