OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20010113-1.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* Origin: PR c/364 from and@genesyslab.com, very much reduced to a
2
   testcase by Joseph Myers <jsm28@cam.ac.uk>.
3
 
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.  */
7
 
8
struct {
9
  struct {
10
    int x;
11
    int y;
12
  } p;
13
} v;
14
 
15
int *z = &((&(v.p))->y);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.