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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20010124-1.c] - Rev 774

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

/* Origin: testcase from Joseph Myers <jsm28@cam.ac.uk>, problem pointed
   out in a post to comp.std.c
   <980283801.3063.0.nnrp-07.c2deb1c2@news.demon.co.uk>
   by Dibyendu Majumdar <dibyendu@mazumdar.demon.co.uk>.
   Compound literals should be parsed as postfix expressions, rather than
   as cast expressions.  In particular, they are valid operands of sizeof.  */
 
struct s { int a; int b; };
char x[((sizeof (struct s){ 1, 2 }) == sizeof (struct s)) ? 1 : -1];
 

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

powered by: WebSVN 2.1.0

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