Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail20658.d
blob: fd422aaa168471fd8dd5af71903df114bc8d1324 [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/fail20658.d(14): Error: field `U.m` cannot modify fields in `@safe` code that overlap fields with other storage classes
---
*/
union
U
{
int
m
;
immutable
int
i
;
}
U u
;
enum
e
=
()
@safe
{
u
.
m
=
13
;
};