summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/fail275.d
blob: ba4bd75251f7538eaacc9d9ce6f050cf46667b2a (plain)
1
2
3
4
5
6
7
8
9
10
11
/*
TEST_OUTPUT:
---
fail_compilation/fail275.d(10): Error: circular reference to variable `fail275.C.x`
---
*/
// REQUIRED_ARGS: -d
struct C
{
    const x = C.x;
}