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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr36508.c
blob
30489923642aef5fdd124b991de3596d65aa5225
1
/* PR tree-optimization/36508 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -ftree-pre" } */
4
5
void
6
foo
(
short
*
sp
)
7
{
8
int
k
;
9
k
=
1
;
10
#define SP0 *sp++ = 1;
11
while
(
1
)
12
{
13
if
(
k
>
6
)
14
break
;
15
SP0
16
k
++;
17
}
18
k
=
1
;
19
while
(
1
)
20
{
21
if
(
k
>
6
)
22
break
;
23
SP0
24
k
++;
25
}
26
#define SP1 SP0 SP0 SP0 SP0 SP0 SP0 SP0 SP0 SP0 SP0 SP0
27
#define SP2 SP1 SP1 SP1 SP1 SP1 SP1 SP1 SP1 SP1 SP1 SP1
28
SP2
29
}