| 1 |
// { dg-do preprocess { target c++ } } |
| 2 |
// { dg-options "-std=c++14" } |
| 3 |
// { dg-additional-options -fdirectives-only } |
| 4 |
|
| 5 |
012'bcd |
| 6 |
#define A 1 |
| 7 |
// ' |
| 8 |
#ifndef A |
| 9 |
#error Fell into first char const |
| 10 |
#endif |
| 11 |
enum { A = 195'936'478 }; 'a' |
| 12 |
#define AA 1 |
| 13 |
// 'a |
| 14 |
#ifndef AA |
| 15 |
#error Fell into early char const |
| 16 |
#endif |
| 17 |
|
| 18 |
012\ |
| 19 |
'bcd |
| 20 |
#define B 1 |
| 21 |
// ' |
| 22 |
#ifndef B |
| 23 |
#error Fell into second char const |
| 24 |
#endif |
| 25 |
|
| 26 |
.012'b |
| 27 |
#define C 1 |
| 28 |
// ' |
| 29 |
#ifndef C |
| 30 |
#error Fell into third char const |
| 31 |
#endif |
| 32 |
|
| 33 |
.0e+12'b |
| 34 |
#define D 1 |
| 35 |
// ' |
| 36 |
#ifndef D |
| 37 |
#error Fell into fourth char const |
| 38 |
#endif |