MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / templatethis.d
blob73036d959b4af691f834d0a16efe84e21f6a5967
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/templatethis.d(13): Error: cannot use `this` outside an aggregate type
5 fail_compilation/templatethis.d(17): Error: cannot use `this` outside an aggregate type
6 fail_compilation/templatethis.d(21): Error: cannot use `this` outside an aggregate type
7 fail_compilation/templatethis.d(23): Error: cannot use `this` outside an aggregate type
8 fail_compilation/templatethis.d(29): Error: cannot use `this` outside an aggregate type
9 fail_compilation/templatethis.d(32): Error: mixin `templatethis.t2!()` error instantiating
10 ---
13 template t(this T)
17 struct S(this T)
21 enum e(this T) = 1;
23 void f(this T)()
27 mixin template t2()
29 int i(this T) = 1;
32 mixin t2;
34 class C
36 mixin t2; // OK