mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-07 22:07:43 +08:00
* gcc.c-torture/compile/20010113-1.c: New test.
From-SVN: r38997
This commit is contained in:
parent
9e2adb2a1c
commit
6f6684e699
@ -1,3 +1,7 @@
|
||||
2001-01-13 Joseph S. Myers <jsm28@cam.ac.uk>
|
||||
|
||||
* gcc.c-torture/compile/20010113-1.c: New test.
|
||||
|
||||
2001-01-13 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* gcc.c-torture/compile/20001212-1.c: New test.
|
||||
|
15
gcc/testsuite/gcc.c-torture/compile/20010113-1.c
Normal file
15
gcc/testsuite/gcc.c-torture/compile/20010113-1.c
Normal file
@ -0,0 +1,15 @@
|
||||
/* 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);
|
Loading…
Reference in New Issue
Block a user