MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice20056.d
blob519ada11eb74bbf9be74b6dfe858a1bfe2816ce8
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice20056.d(19): Error: calling non-static function `iter` requires an instance of type `RangeWrapper`
5 ---
6 */
7 struct Def(alias fn)
9 alias func = alias_selector!(fn).VOverloads[0];
12 template alias_selector(alias fn)
14 alias VOverloads = __traits(getOverloads, __traits(parent, fn), __traits(identifier, fn));
17 void init_rangewrapper()
19 Def!(RangeWrapper.iter).func;
22 struct RangeWrapper
24 void iter() { }