MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail46.d
blob9d97ba12614c09cbb9c114be19674076c98df2da
1 // PERMUTE_ARGS: -inline
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/fail46.d(19): Error: calling non-static function `bug` requires an instance of type `MyStruct`
6 ---
7 */
9 struct MyStruct
11 int bug()
13 return 3;
17 int main()
19 assert(MyStruct.bug() == 3);
20 return 0;