fork(8) download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int x = 1;
  6.  
  7. switch (x)
  8. {
  9. case 5 || 2:
  10. std::cout << "yes\n";
  11. break;
  12. default:
  13. std::cout << "default\n";
  14. break;
  15. }
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0.02s 2680KB
stdin
Standard input is empty
stdout
yes