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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [cpp/] [trad/] [directive.c] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* Test for some basic aspects of -traditional directive processing.  */
/* Test for some basic aspects of -traditional directive processing.  */
 
 
/* { dg-do preprocess } */
/* { dg-do preprocess } */
 
 
#define HASH #
#define HASH #
HASH
HASH
 
 
/* There is a #error directive.  */
/* There is a #error directive.  */
 
 
#error bad      /* { dg-error "bad" } */
#error bad      /* { dg-error "bad" } */
 
 
/* Directives with their #s indented are not recognized.  */
/* Directives with their #s indented are not recognized.  */
 #if 0  /* { dg-bogus "unterminated" } */
 #if 0  /* { dg-bogus "unterminated" } */
 
 
#wrong  /* { dg-error "invalid" } */
#wrong  /* { dg-error "invalid" } */
 
 
#define foo 2
#define foo 2
#define bar + 3
#define bar + 3
#define foobar 6
#define foobar 6
 
 
#if foo/**/bar != 5
#if foo/**/bar != 5
# error Comments in directive is a separator /* { dg-bogus "error" } */
# error Comments in directive is a separator /* { dg-bogus "error" } */
#endif
#endif
 
 

powered by: WebSVN 2.1.0

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