blob: 762bf98c6adbd1ed233843123bbd2a47095a302b [file] [log] [blame] [edit]
// RUN: %clang_cc1 -std=c++17 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir
// RUN: FileCheck --input-file=%t.cir %s
// XFAIL: *
void unreachable_after_break(int a) {
switch(a) {
case 0:
break;
break;
int x = 1;
}
}
int unreachable_after_return(int a) {
switch (a) {
case 0:
return 0;
return 1;
int x = 1;
}
return 2;
}