Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail7369.d
blob: 4ba11e4abb7836d52edfcfbf9970ee2396ee38b9 [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/fail7369.d(9): Error: cannot modify `this.a` in `const` function
---
*/
struct
S7369
{
int
a
;
invariant
()
{
a
+=
5
;
}
}