1 // REQUIRED_ARGS: -de 2 /* 3 TEST_OUTPUT: 4 --- 5 fail_compilation/test16523.d(13): Deprecation: case variables have to be const or immutable 6 --- 7 */ 8 test(int a,int b)9 void test(int a, int b) 10 { 11 switch (a) 12 { 13 case b: return; 14 default: assert(0); 15 } 16 } 17