URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// 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.
|
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-O2 -fopenmp" }
|
// { dg-options "-O2 -fopenmp" }
|
|
|
extern void baz () __attribute__ ((noreturn));
|
extern void baz () __attribute__ ((noreturn));
|
|
|
static inline void
|
static inline void
|
foo ()
|
foo ()
|
{
|
{
|
#pragma omp parallel
|
#pragma omp parallel
|
for (;;)
|
for (;;)
|
;
|
;
|
}
|
}
|
|
|
static inline void
|
static inline void
|
bar ()
|
bar ()
|
{
|
{
|
#pragma omp parallel
|
#pragma omp parallel
|
baz ();
|
baz ();
|
}
|
}
|
|
|
void
|
void
|
foo1 ()
|
foo1 ()
|
{
|
{
|
foo ();
|
foo ();
|
}
|
}
|
|
|
void
|
void
|
foo2 ()
|
foo2 ()
|
{
|
{
|
foo ();
|
foo ();
|
}
|
}
|
|
|
void
|
void
|
bar1 ()
|
bar1 ()
|
{
|
{
|
bar ();
|
bar ();
|
}
|
}
|
|
|
void
|
void
|
bar2 ()
|
bar2 ()
|
{
|
{
|
bar ();
|
bar ();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.