Sign in
gnu
/
gcc
/
a6d3012b274f38b20e2a57162106f625746af6c6
/
.
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
test16523.d
blob: e5de7c19cb1f36a9a9cb362e8a8cfc869dd445c7 [
file
] [
log
] [
blame
]
// REQUIRED_ARGS: -de
/*
TEST_OUTPUT:
---
fail_compilation/test16523.d(13): Deprecation: case variables have to be const or immutable
---
*/
void
test
(
int
a
,
int
b
)
{
switch
(
a
)
{
case
b
:
return
;
default
:
assert
(
0
);
}
}