MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice15332.d
blob67895835823b8927688c05e805450d32eb41af01
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice15332.d(16): Error: calling non-static function `fun` requires an instance of type `C`
5 fail_compilation/ice15332.d(17): Error: accessing non-static variable `var` requires an instance of `C`
6 ---
7 */
9 class C
11 int fun() { return 5; }
12 int var;
14 void test()
16 int a1 = function() { return fun; }();
17 int a2 = function() { return var; }();