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
/
g++.dg
/
opt
/
loop1.C
blob
ad0308e7f959879b6c933064c8fa82e8f80ffef6
1
// PR rtl-optimization/16590
2
// { dg-do run }
3
// { dg-options "-O2" }
4
5
extern "C" void abort();
6
7
struct iterator {
8
char * p;
9
int *dummy;
10
};
11
12
static iterator pend(char * start) {
13
iterator p = {start, 0};
14
if (p.p == start) p.p = start+5;
15
--p.p;
16
return p;
17
}
18
19
int main() {
20
char mem[4+1];
21
22
if(pend(mem).p != mem+4)
23
abort ();
24
}