summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/diag15186.d
blob: 70177f4169d186d3af62da29afbc5c3333178a23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
TEST_OUTPUT:
---
fail_compilation/diag15186.d(14): Error: use `.` for member lookup, not `::`
fail_compilation/diag15186.d(15): Error: use `.` for member lookup, not `->`
---
*/

void main()
{
    struct S { static int x; int y; }
    S* s;

    S::x = 1;
    s->y = 2;
}