summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/fail12390.d
blob: cb1eb8a6bf1a968b7d3dfa8e0b11a18e1d0e2ed7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
TEST_OUTPUT:
---
fail_compilation/fail12390.d(14): Error: `==` has no effect in expression `fun().i == 4`
---
*/

struct S { int i; }

S fun() { return S(42); }

void main()
{
    fun().i == 4;
}