blob: d7dec3114506f9fded88d1ebeb28442a777ee58d [file] [log] [blame]
/* PR sanitizer/85081 */
/* { dg-do run } */
/* { dg-options "-fopenmp-simd" } */
/* { dg-require-effective-target fopenmp } */
inline const int& max(const int& a, const int& b)
{
return a < b ? b : a;
}
int main()
{
#pragma omp simd
for ( int i = 0; i < 20; ++i )
{
const int j = max(i, 1);
}
return 0;
}