1 /* PR tree-optimization/85063 */ 2 /* { dg-additional-options "-ftree-switch-conversion" } */ 3 4 #include <stdlib.h> 5 6 int 7 main (void) 8 { 9 int n[1]; 10 11 n[0] = 3; 12 13 #pragma acc parallel copy(n) 14 { 15 int m = n[0]; 16 switch (m & 3) cb_ev_alloc(acc_prof_info * prof_info,acc_event_info * event_info,acc_api_info * api_info)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 (); cb_ev_free(acc_prof_info * prof_info,acc_event_info * event_info,acc_api_info * api_info)29 30 return 0; 31 } 32