aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gomp/pr87895-1.c
blob: 7338f18d192072c4447957f3f20a32545c961d7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR tree-optimization/87895 */
/* { dg-do compile } */
/* { dg-additional-options "-O0" } */

#pragma omp declare simd
int
foo (int x)
{
  if (x == 0)
    return 0;
}

#pragma omp declare simd
int
bar (int *x, int y)
{
  if ((y == 0) ? (*x = 0) : *x)
    return 0;
}
/* { dg-warning "GCC does not currently support mixed size types for 'simd' functions" "" { target aarch64*-*-* } .-5 } */