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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [if-cexp.c] - Rev 867

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

/* { dg-do preprocess } */
 
/* Test the ? : opearator, for precedence and both true and false.  */
 
#if  1 ? 1 ? 2 : 0 : 0
#error OK	/* { dg-error "OK" "nested ? :" } */
#endif
 
#if  ((0) ? (1) ? (2) : (3) : (4) ? (5): (6)) == 5
#error OK	/* { dg-error "OK" "nested ? : with parens" } */
#endif
 
#if 2:		/* { dg-error "':' without" "immediate :" } */
#endif
 

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.