MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / must_use.d
blobe3b5fedfd4d79ce44b822f97c04215f18b689e77
1 /+
2 TEST_OUTPUT:
3 ---
4 fail_compilation/must_use.d(15): Error: ignored value of `@mustuse` type `must_use.S`; prepend a `cast(void)` if intentional
5 ---
6 +/
7 import core.attribute;
9 @mustuse struct S {}
11 S fun() { return S(); }
13 void test()
15 fun();