MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag13528.d
blob9b5761f7a575943e658408a915d1c27a74aaa62e
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag13528.d(6): Error: value of `this` is not known at compile time
5 fail_compilation/diag13528.d(6): while evaluating `pragma(msg, __traits(getMember, A, "foo"))`
6 fail_compilation/diag13528.d(12): parent scope from here: `mixin MyTemplate!()`
7 ---
8 */
9 #line 1
11 mixin template MyTemplate()
13 void foo()
15 pragma(msg, __traits(getMember, typeof(this), "foo"));
19 class A
21 mixin MyTemplate;
24 void main()
26 auto a = new A();