summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/switch-1.c
blob: cc71d30bb3f515361a5970b7f43befa0e11a6d24 (plain)
1
2
3
4
5
6
7
8
9
/* PR middle-end/26557.  */
const int struct_test[1] = {1};
void g();
void f() {
  switch(struct_test[0]) {
    case 1: g();
  }
}