summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/_Atomic-4.c
blob: f790dd094dc51dd08040ded5b6a7563844262f26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR c/65467 */
/* { dg-do compile } */
/* { dg-additional-options "-std=c11" } */
/* { dg-require-effective-target vect_simd_clones } */

#pragma omp declare simd
int
f1 (_Atomic int x, int y)	/* { dg-warning "ignoring '#pragma omp declare simd' on function with '_Atomic' qualified non-'uniform' argument" } */
{
  return x + y;
}

#pragma omp declare simd uniform(x)
int
f2 (_Atomic int x, int y)
{
  return x + y;
}