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] - Blame information for rev 823

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

Line No. Rev Author Line
1 149 jeremybenn
/* Test for proper disabling of macros within their own expansions.  */
2
/* { dg-do compile } */
3
 
4
/* The following is a trick to evaluate a complex boolean expression
5
   at compile time, inspired by autoconf 2.13's sizeof-detection.  */
6
 
7
enum { a = 4, f = 3 };
8
 
9
#define a1(y) (y+2)
10
#define a2(y) a1(y)+1
11
#define f a+f
12
 
13
char array[(a2(f)) == 10 ? 1 : -1];

powered by: WebSVN 2.1.0

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