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/] [19921210-1.c] - Rev 149

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

/* Test for proper disabling of macros within their own expansions.  */
/* { dg-do compile } */
 
/* The following is a trick to evaluate a complex boolean expression
   at compile time, inspired by autoconf 2.13's sizeof-detection.  */
 
enum { a = 4, f = 3 };
 
#define a1(y) (y+2)
#define a2(y) a1(y)+1
#define f a+f
 
char array[(a2(f)) == 10 ? 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.