| 1 |
/* REQUIRED_ARGS: -wi |
| 2 |
TEST_OUTPUT: |
| 3 |
--- |
| 4 |
fail_compilation/cerrors.d(13): Error: C preprocessor directive `#if` is not supported, use `version` or `static if` |
| 5 |
fail_compilation/cerrors.d(13): Error: declaration expected, not `#` |
| 6 |
fail_compilation/cerrors.d(17): Error: C preprocessor directive `#endif` is not supported |
| 7 |
fail_compilation/cerrors.d(17): Error: declaration expected, not `#` |
| 8 |
fail_compilation/cerrors.d(21): Error: token string requires valid D tokens, not `#if` |
| 9 |
fail_compilation/cerrors.d(22): Deprecation: token string requires valid D tokens, not `#include` |
| 10 |
--- |
| 11 |
*/ |
| 12 |
|
| 13 |
#if 1 |
| 14 |
|
| 15 |
void test(wchar_t u); |
| 16 |
|
| 17 |
#endif |
| 18 |
|
| 19 |
// https://issues.dlang.org/show_bug.cgi?id=23792 |
| 20 |
enum s1 = q{ |
| 21 |
#if 1 |
| 22 |
#include <test> |
| 23 |
}; |