d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / cerrors.d
blobdb306c1f2134ceeaace80db12325a16d9f544d31
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 ---
13 #if 1
15 void test(wchar_t u);
17 #endif
19 // https://issues.dlang.org/show_bug.cgi?id=23792
20 enum s1 = q{
21 #if 1
22 #include <test>