2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20010113-1.c
blob35b7c1f1d7ed57f46e68f293e70a08223833c6a6
1 /* Origin: PR c/364 from and@genesyslab.com, very much reduced to a
2 testcase by Joseph Myers <jsm28@cam.ac.uk>.
4 The initializer of z is a valid address constant, and GCC 2.95.2
5 accepts it as such. CVS GCC as of 2001-01-13 rejects it, but accepts
6 it if y is changed to x in the initializer. */
8 struct {
9 struct {
10 int x;
11 int y;
12 } p;
13 } v;
15 int *z = &((&(v.p))->y);