| 1 |
This file is testing line counting in various scenarios involving |
| 2 |
escaped newlines, including using the trigraph escape sequence |
| 3 |
|
| 4 |
--> __LINE__ 4 |
| 5 |
"multi-\ |
| 6 |
line ??/ |
| 7 |
string" |
| 8 |
--> __LINE__ 8 |
| 9 |
'multi-\ |
| 10 |
line ??/ |
| 11 |
character constant' |
| 12 |
--> __LINE__ 12 |
| 13 |
multi-\ |
| 14 |
line 012\ |
| 15 |
345??/ |
| 16 |
678 integer constant |
| 17 |
--> __LINE__ 17 |
| 18 |
multi-\ |
| 19 |
line\ |
| 20 |
li??/ |
| 21 |
st ??/ |
| 22 |
of \ |
| 23 |
tokens |
| 24 |
--> __LINE__ 24 |
| 25 |
/* multi-\ |
| 26 |
line ??/ |
| 27 |
comment */ |
| 28 |
--> __LINE__ 28 |
| 29 |
/\ |
| 30 |
??/ |
| 31 |
*/ comment with escaped newlines /* |
| 32 |
in the markers |
| 33 |
??/ |
| 34 |
*\ |
| 35 |
/ |
| 36 |
--> __LINE__ 36 |
| 37 |
// multi-\ |
| 38 |
line ??/ |
| 39 |
C++ comment |
| 40 |
--> __LINE__ 40 |
| 41 |
\ |
| 42 |
\ |
| 43 |
/\ |
| 44 |
??/ |
| 45 |
\ |
| 46 |
/ ??/ |
| 47 |
C++ comment with leading whitespace and escaped newlines |
| 48 |
--> __LINE__ 48 |
| 49 |
#pragma multi-\ |
| 50 |
line ??/ |
| 51 |
#pragma directive |
| 52 |
--> __LINE__ 52 |
| 53 |
#define FOO multi-\ |
| 54 |
line macro /* with\ |
| 55 |
a comment *??/ |
| 56 |
/ embedded |
| 57 |
--> __LINE__ 57 |
| 58 |
FOO |
| 59 |
--> __LINE__ 59 |
| 60 |
/??/ |
| 61 |
* comment \ |
| 62 |
before ??/ |
| 63 |
directive */ #define BAR macro with a leading comment |
| 64 |
--> __LINE__ 64 |
| 65 |
BAR |
| 66 |
--> __LINE__ 66 |
| 67 |
\ |
| 68 |
??/ |
| 69 |
#define BAZ macro with leading whitespace and escaped newlines |
| 70 |
--> __LINE__ 70 |
| 71 |
BAZ |
| 72 |
--> __LINE__ 72 |
| 73 |
#define POTATO a token split by escaped newlines |
| 74 |
PO\ |
| 75 |
TA??/ |
| 76 |
TO |
| 77 |
--> __LINE__ 77 |
| 78 |
#if 0 |
| 79 |
#pragma multi-??/ |
| 80 |
line \ |
| 81 |
#pragma inside if-false block |
| 82 |
--> __LINE__ 82 |
| 83 |
#else |
| 84 |
#pragma multi-??/ |
| 85 |
line \ |
| 86 |
#pragma inside if-true block |
| 87 |
--> __LINE__ 87 |
| 88 |
#endif |
| 89 |
--> __LINE__ 89 |
| 90 |
/* comment */ # pragma with a preceding comment |
| 91 |
--> __LINE__ 91 |
| 92 |
#if 0 |
| 93 |
/* multi-\ |
| 94 |
* line comment at flslvl=1 |
| 95 |
*/ |
| 96 |
#endif |
| 97 |
--> __LINE__ 97 |