OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [pr29965-1.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* PR middle-end/29965 */
2
/* Test that OpenMP construct bodies which never return don't cause ICEs.  */
3
/* { dg-do compile } */
4
/* { dg-options "-O2 -fopenmp" } */
5
 
6
extern void baz (void) __attribute__ ((noreturn));
7
 
8
static inline void
9
foo (void)
10
{
11
#pragma omp parallel
12
  for (;;)
13
    ;
14
}
15
 
16
static inline void
17
bar (void)
18
{
19
#pragma omp parallel
20
  baz ();
21
}
22
 
23
void
24
foo1 (void)
25
{
26
  foo ();
27
}
28
 
29
void
30
foo2 (void)
31
{
32
  foo ();
33
}
34
 
35
void
36
bar1 (void)
37
{
38
  bar ();
39
}
40
 
41
void
42
bar2 (void)
43
{
44
  bar ();
45
}

powered by: WebSVN 2.1.0

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