mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-04 01:50:38 +00:00
32 lines
406 B
C
32 lines
406 B
C
/* PR tree-optimization/85063 */
|
|
/* { dg-additional-options "-ftree-switch-conversion" } */
|
|
|
|
#include <stdlib.h>
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
int n[1];
|
|
|
|
n[0] = 3;
|
|
|
|
#pragma omp target
|
|
{
|
|
int m = n[0];
|
|
switch (m & 3)
|
|
{
|
|
case 0: m = 4; break;
|
|
case 1: m = 3; break;
|
|
case 2: m = 2; break;
|
|
default:
|
|
m = 1; break;
|
|
}
|
|
n[0] = m;
|
|
}
|
|
|
|
if (n[0] != 1)
|
|
abort ();
|
|
|
|
return 0;
|
|
}
|