view gcc/testsuite/gcc.dg/gomp/pr87895-3.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 "-O2" } */

#pragma omp declare simd
int foo (int x) __attribute__((noreturn));

#pragma omp declare simd
int
bar (int x, int y)
{
  if (y == 1)
    foo (x + 2);
  if (y == 10)
    foo (x + 6);
  if (y != 25)
    return 4;
}