OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr29965-7.C] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// PR middle-end/29965
// PR middle-end/29965
// Test that OpenMP construct bodies which never return don't cause ICEs.
// Test that OpenMP construct bodies which never return don't cause ICEs.
// This is invalid code, but we don't emit diagnostics for it, nevertheless
// This is invalid code, but we don't emit diagnostics for it, nevertheless
// we test that we don't ICE on it.
// we test that we don't ICE on it.
// { dg-do compile }
// { dg-do compile }
// { dg-options "-O2 -fopenmp" }
// { dg-options "-O2 -fopenmp" }
void
void
foo ()
foo ()
{
{
#pragma omp parallel
#pragma omp parallel
  throw 0;
  throw 0;
}
}
static inline void
static inline void
bar ()
bar ()
{
{
#pragma omp parallel
#pragma omp parallel
  throw 0;
  throw 0;
}
}
void
void
bar1 ()
bar1 ()
{
{
  bar ();
  bar ();
}
}
void
void
bar2 ()
bar2 ()
{
{
  bar ();
  bar ();
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.