sched1: debug/model: dump predecessor list and BB num [NFC]
[gcc.git] / libgomp / testsuite / libgomp.c / switch-conversion-2.c
blob97601dc9cbb0c8ae805d8be876d503ca01955af5
1 /* PR tree-optimization/85063 */
2 /* { dg-additional-options "-ftree-switch-conversion" } */
4 #include <stdlib.h>
6 int
7 main (void)
9 int n[1];
11 n[0] = 3;
13 #pragma omp target
15 int m = n[0];
16 switch (m & 3)
18 case 0: m = 4; break;
19 case 1: m = 3; break;
20 case 2: m = 2; break;
21 default:
22 m = 1; break;
24 n[0] = m;
27 if (n[0] != 1)
28 abort ();
30 return 0;