summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/gh-1374.slang.expected
blob: aafdc409f64e0ebbf19379ed438ffc288a6e2033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
result code = 1
standard error = {
tests/diagnostics/gh-1374.slang(9): error 39999: the initial-value expression for variable 'kVal' depends on the value of the variable itself
    static const int kVal = kVal;
                     ^~~~
tests/diagnostics/gh-1374.slang(11): error 39999: the initial-value expression for variable 'kInf' depends on the value of the variable itself
    static const int kInf = kInf + 1;
                     ^~~~
tests/diagnostics/gh-1374.slang(14): error 39999: the initial-value expression for variable 'kB' depends on the value of the variable itself
    static const int kB = kA;
                     ^~
tests/diagnostics/gh-1374.slang(13): error 39999: the initial-value expression for variable 'kA' depends on the value of the variable itself
    static const int kA = kB;
                     ^~
}
standard output = {
}