Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/cpp/trad/directive.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* 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 |