Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail18236.d
blob: 5a696f38a4ff827124939dd20dda62ead2b85587 [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/fail18236.d(20): Error: cannot cast expression `V(12)` of type `V` to `int`
---
*/
struct
V
{
int
a
;
}
struct
S
{
enum
A
=
V
(
12
);
}
void
main
()
{
int
b
=
cast
(
int
)
S
.
A
;
}