Sign in
gnu
/
gcc
/
refs/tags/basepoints/gcc-13
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
fail15089.d
blob: 9aa94f863dfe697ee13f184e9b0aecc044231378 [
file
] [
log
] [
blame
]
/*
TEST_OUTPUT:
---
fail_compilation/fail15089.d(10): Error: cannot implicitly convert expression `2 ^ 128` of type `int` to `byte`
---
*/
enum
Pieces
{
Rook
=
2
}
/* line 1 */
immutable
int
color
=
0b10000000
;
byte
piece
=
Pieces
.
Rook
^
color
;