MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail143.d
blobe5ccb0fcb06fb455532a59cb58065ba33dad523f
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail143.d(23): Error: calling non-static function `next` requires an instance of type `Quux`
5 fail_compilation/fail143.d(30): Error: template instance `fail143.Foo!int` error instantiating
6 ---
7 */
9 class Quux
11 uint x;
13 final uint next()
15 return x;
19 template Foo(T)
21 void bar()
23 int r = Quux.next;
27 int main(char[][] args)
29 auto prng = new Quux();
30 alias Foo!(int).bar baz;
32 int x = prng.next;
33 baz();
35 return 0;