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/] [for-16.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
// { dg-do compile }
2
 
3
template
4
void foo ()
5
{
6
#pragma omp for
7
  for (unsigned int i = 0; i < 10; i++); // { dg-warning "is unsigned" }
8
#pragma omp for
9
  for (int j = 0; ; j++); // { dg-error "missing controlling predicate" }
10
#pragma omp for
11
  for (int k = 0; k == 1; k++); // { dg-error "invalid controlling predicate" }
12
#pragma omp for
13
  for (int l = 0; l < 10; ); // { dg-error "missing increment expression" }
14
#pragma omp for
15
  for (int m = 0; m < 10; m *= 3); // Error here is emitted only during
16
                                   // instantiation
17
#pragma omp for
18
  for (T n = 0; ; n++); // { dg-error "missing controlling predicate" }
19
#pragma omp for
20
  for (T o = 0; o == 1; o++); // Error here is emitted only during
21
                              // instantiation
22
#pragma omp for
23
  for (T p = 0; p < 10; ); // { dg-error "missing increment expression" }
24
#pragma omp for
25
  for (T q = 0; q < 10; q *= 3); // Error here is emitted only during
26
                                 // instantiation
27
}
28
 
29
void bar ()
30
{
31
#pragma omp for
32
  for (int m = 0; m < 10; m *= 3); // { dg-error "invalid increment expression" }
33
}

powered by: WebSVN 2.1.0

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