blob: 4e1645bbca89874ba3426723ca4e9c04532e310a [file] [log] [blame]
/* { dg-do compile } */
/* Check that the simd trait is rejected in the match clause for
"begin declare variant". */
int foo (int a)
{
return a;
}
int bar (int x)
{
return x;
}
#pragma omp begin declare variant match (construct={target, simd}) /* { dg-error "the 'simd' selector is not permitted" } */
int foo (int a)
{
return a + 1;
}
int bar (int x)
{
return x * 2;
}
#pragma omp end declare variant