view gcc/testsuite/gcc.dg/gomp/pr87895-1.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

/* 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 } */