MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail_casting2.d
blob16bc5bcead208f9070b83456e64be33ab6bc4e46
1 // REQUIRED_ARGS: -o-
3 /*
4 TEST_OUTPUT:
5 ---
6 fail_compilation/fail_casting2.d(15): Error: type `int` is not an expression
7 fail_compilation/fail_casting2.d(17): Error: template lambda has no type
8 fail_compilation/fail_casting2.d(20): Error: template `Templ()` has no type
9 ---
12 void test15214()
14 alias Type = int;
15 cast(void)(Type);
17 cast(void)(x => mixin(x)("mixin(x);"));
19 template Templ() {}
20 cast(void)(Templ);