Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.c-torture/compile/20010113-1.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Origin: PR c/364 from and@genesyslab.com, very much reduced to a testcase by Joseph Myers <jsm28@cam.ac.uk>. The initializer of z is a valid address constant, and GCC 2.95.2 accepts it as such. CVS GCC as of 2001-01-13 rejects it, but accepts it if y is changed to x in the initializer. */ struct { struct { int x; int y; } p; } v; int *z = &((&(v.p))->y);