From: Joseph Myers Date: Sat, 13 Jan 2001 23:27:06 +0000 (+0000) Subject: * gcc.c-torture/compile/20010113-1.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6f6684e69928cbedf89f63fbe90a09c31e9dd6aa;p=gcc.git * gcc.c-torture/compile/20010113-1.c: New test. From-SVN: r38997 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 030da1e77e8..edc4d7d142f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2001-01-13 Joseph S. Myers + + * gcc.c-torture/compile/20010113-1.c: New test. + 2001-01-13 Jakub Jelinek * gcc.c-torture/compile/20001212-1.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/20010113-1.c b/gcc/testsuite/gcc.c-torture/compile/20010113-1.c new file mode 100644 index 00000000000..35b7c1f1d7e --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20010113-1.c @@ -0,0 +1,15 @@ +/* Origin: PR c/364 from and@genesyslab.com, very much reduced to a + testcase by Joseph Myers . + + 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);