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
/
tree-ssa
/
pr15791-1.C
blob
68f14adad00a0f81acdae6c57f83633beaba343c
1
/* { dg-do link } */
2
3
void link_error ();
4
5
int main ()
6
{
7
struct { int b[2]; } x;
8
int b[2];
9
if (&b[1] != &b[1])
10
link_error ();
11
if (&b[0] != b)
12
link_error ();
13
if (b == &b[2])
14
link_error ();
15
if (b != b)
16
link_error ();
17
if (&x.b[1] == &x.b[0])
18
link_error ();
19
if (x.b != &x.b[0])
20
link_error ();
21
if (&x.b[1] == x.b)
22
link_error ();
23
return 0;
24
}
25