MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice10016.d
blob2f444f11713893dd345b1f781f52ac8b43a4df33
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice10016.d(33): Error: undefined identifier `unknownIdentifier`
5 fail_compilation/ice10016.d(47): Error: template instance `ice10016.RefCounted!(S)` error instantiating
6 ---
7 */
9 struct RefCounted(T)
11 struct RefCountedStore
13 struct Impl
15 T _payload;
17 Impl* _store;
19 RefCountedStore _refCounted;
21 void opAssign(typeof(this)) { }
22 void opAssign(T) { }
24 @property refCountedPayload()
26 return _refCounted._store._payload;
28 alias refCountedPayload this;
31 struct S
33 int i = unknownIdentifier;
36 class C {}
38 class N
40 this(C) {}
41 C c() { return null; }
44 class D : N
46 this() { super(c); }
47 RefCounted!S _s;