MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag9635.d
blob9794c8f51e64ce653ff9a7c4917aab07e10bf937
1 // REQUIRED_ARGS: -m32
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/diag9635.d(17): Error: accessing non-static variable `i` requires an instance of `Foo`
6 fail_compilation/diag9635.d(18): Error: calling non-static function `foo` requires an instance of type `Foo`
7 ---
8 */
10 struct Foo
12 int i;
13 void foo()() { }
15 static void bar()
17 i = 4;
18 foo();