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-9.C] - Blame information for rev 825

Go to most recent revision | 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
// This is invalid code, but we don't emit diagnostics for it, nevertheless
4
// we test that we don't ICE on it.
5
// { dg-do compile }
6
// { dg-options "-O2 -fopenmp" }
7
 
8
void
9
foo1 ()
10
{
11
#pragma omp single
12
  throw 0;
13
}
14
 
15
void
16
foo2 ()
17
{
18
#pragma omp master
19
  throw 0;
20
}
21
 
22
void
23
foo3 ()
24
{
25
#pragma omp ordered
26
  throw 0;
27
}
28
 
29
void
30
foo4 ()
31
{
32
#pragma omp critical
33
  throw 0;
34
}

powered by: WebSVN 2.1.0

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