URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [gcc.dg/] [redecl-6.c] - Rev 839
Go to most recent revision | Compare with Previous | Blame | View Log
/* Test for multiple declarations and composite types. As in bug 13801. Illustrates how bug causes correct code to be wrongly diagnosed. */ /* Origin: Joseph Myers <jsm@polyomino.org.uk> */ /* { dg-do compile } */ /* { dg-options "" } */ typedef int IA[]; typedef int A5[5]; typedef int A10[10]; A10 array10; A5 *ap; void f (void) { int ap; { extern IA *ap; /* This assignment is valid. */ ap = &array10; } }
Go to most recent revision | Compare with Previous | Blame | View Log