fork download
  1. # include <iostream>
  2.  
  3. int main()
  4. {
  5. auto x = 3;
  6. switch (x)
  7. {
  8. case (0, 1, 2, 3):
  9. std::cout << "match!" << std::endl;
  10. break;
  11. default:
  12. std::cout << "not match!" << std::endl;
  13. break;
  14. }
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 4372KB
stdin
Standard input is empty
stdout
match!