1 /* PR tree-optimization/85063 */ 2 /* { dg-additional-options "-ftree-switch-conversion" } */ 3 4 #include <stdlib.h> 5 6 int main(void)7main (void) 8 { 9 int n[1]; 10 11 n[0] = 3; 12 13 #pragma omp target 14 { 15 int m = n[0]; 16 switch (m & 3) 17 { 18 case 0: m = 4; break; 19 case 1: m = 3; break; 20 case 2: m = 2; break; 21 default: 22 m = 1; break; 23 } 24 n[0] = m; 25 } 26 27 if (n[0] != 1) 28 abort (); 29 30 return 0; 31 } 32