Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/fail179.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail179.d(11): Error: variable `fail179.main.px` cannot be `final`, perhaps you meant `const`?
5 ---
6 */
7
8 void main()
9 {
10 int x = 3;
11 final px = &x;
12 *px = 4;
13 auto ppx = &px;
14 **ppx = 5;
15 }