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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Test for some basic aspects of -traditional directive processing.  */
2
 
3
/* { dg-do preprocess } */
4
 
5
#define HASH #
6
HASH
7
 
8
/* There is a #error directive.  */
9
 
10
#error bad      /* { dg-error "bad" } */
11
 
12
/* Directives with their #s indented are not recognized.  */
13
 #if 0  /* { dg-bogus "unterminated" } */
14
 
15
#wrong  /* { dg-error "invalid" } */
16
 
17
#define foo 2
18
#define bar + 3
19
#define foobar 6
20
 
21
#if foo/**/bar != 5
22
# error Comments in directive is a separator /* { dg-bogus "error" } */
23
#endif

powered by: WebSVN 2.1.0

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