URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// 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
|
foo1 ()
|
foo1 ()
|
{
|
{
|
#pragma omp single
|
#pragma omp single
|
throw 0;
|
throw 0;
|
}
|
}
|
|
|
void
|
void
|
foo2 ()
|
foo2 ()
|
{
|
{
|
#pragma omp master
|
#pragma omp master
|
throw 0;
|
throw 0;
|
}
|
}
|
|
|
void
|
void
|
foo3 ()
|
foo3 ()
|
{
|
{
|
#pragma omp ordered
|
#pragma omp ordered
|
throw 0;
|
throw 0;
|
}
|
}
|
|
|
void
|
void
|
foo4 ()
|
foo4 ()
|
{
|
{
|
#pragma omp critical
|
#pragma omp critical
|
throw 0;
|
throw 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.