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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [trad/] [funlike-3.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* Test that function-like macros are restricted to directives, and
2
   that unterminated ones are warned about.  */
3
 
4
/* { dg-do preprocess } */
5
 
6
#define f(x) x
7
 
8
#if 2 f(/* { dg-error "unterminated" "unterminated macro in directive" } */
9
)
10
#endif
11
 
12
f( /* { dg-error "unterminated" "unterminated macro" } */

powered by: WebSVN 2.1.0

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