blob: 5c852a1ac917716e33f13a5d43e48f48734b2df7 [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail12390.d(15): Error: the result of the equality expression `fun().i == 4` is discarded
fail_compilation/fail12390.d(15): note that `fun().i` may have a side effect
---
*/
struct S { int i; }
S fun() { return S(42); }
void main()
{
fun().i == 4;
}