1 /* 2 * REQUIRED_ARGS: -c 3 * TEST_OUTPUT: 4 --- 5 compilable/b16967.d(16): Deprecation: switch case fallthrough - use 'goto default;' if intended 6 compilable/b16967.d(26): Deprecation: switch case fallthrough - use 'goto default;' if intended 7 --- 8 */ foo(int x)9int foo(int x) 10 in 11 { 12 switch (x) 13 { 14 case 1: 15 assert(x != 0); 16 default: 17 break; 18 } 19 } out(v)20out(v) 21 { 22 switch(v) 23 { 24 case 42: 25 assert(x != 0); 26 default: 27 break; 28 } 29 } 30 body 31 { 32 return 42; 33 } 34