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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20010124-1.c] - Blame information for rev 297

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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