cc/cpp/tests/test17
raw| 1 | testing that pp-numbers are parsed correctly |
| 2 | |
| 3 | #define e E |
| 4 | #define f F |
| 5 | #define foo FOO |
| 6 | |
| 7 | 123.4e+foo |
| 8 | 123.4f+foo |
| 9 | 12\ |
| 10 | 3.4\ |
| 11 | e\ |
| 12 | +\ |
| 13 | foo |
| 14 | 123??/ |
| 15 | .4??/ |
| 16 | e??/ |
| 17 | +??/ |
| 18 | foo |
| 19 | foo.123.foo.456+foo+789.foo |
| 20 | |
| 21 | #if 0xfaff |
| 22 | 0xfaff |
| 23 | #endif |
| 24 | |
| 25 | #if 0xfe00 |
| 26 | 0xfe00 |
| 27 | #endif |
| 28 | |
| 29 | #if 0xfeff |
| 30 | 0xfeff |
| 31 | #endif |