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/] [trad/] [funlike.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Test that undefined names evaluate to zero, that macros after a
2
   funlike macro are expanded, and that if it is a '(' the funlike
3
   macro is not treated as such.  */
4
 
5
/* { dg-do preprocess } */
6
 
7
#define f(x) x
8
#define h != 0
9
#define i
10
#define paren (
11
 
12
#if f != 0
13
# error         /* { dg-bogus "error" "undefined name" } */
14
#endif
15
 
16
#if f h
17
# error         /* { dg-bogus "error" "h not expanded" } */
18
#endif
19
 
20
#if f i
21
# error         /* { dg-bogus "error" "empty macro" } */
22
#endif
23
 
24
#if f paren 6) /* { dg-error "missing binary" "macro-expanded parenthesis" } */
25
#endif

powered by: WebSVN 2.1.0

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