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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [19921210-1.c] - Rev 12

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];
 

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.