mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
17 lines
299 B
D
17 lines
299 B
D
/+
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/must_use_comma.d(16): Error: ignored value of `@mustuse` type `must_use_comma.S`; prepend a `cast(void)` if intentional
|
|
---
|
|
+/
|
|
import core.attribute;
|
|
|
|
@mustuse struct S {}
|
|
|
|
S fun() { return S(); }
|
|
void sideEffect() {}
|
|
|
|
void test()
|
|
{
|
|
(fun(), sideEffect());
|
|
}
|