OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr37533.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/37533
2
// { dg-do compile }
3
// { dg-options "-fopenmp" }
4
 
5
template
6
void
7
f1 ()
8
{
9
#pragma omp parallel for
10
  for (int i = ""; i < 4; ++i)  // { dg-error "invalid conversion from" }
11
    ;
12
}
13
 
14
template
15
void
16
f2 ()
17
{
18
  int i;
19
#pragma omp parallel for
20
  for (i = ""; i < 4; ++i)      // { dg-error "invalid conversion from" }
21
    ;
22
}
23
 
24
template
25
void
26
f3 ()
27
{
28
#pragma omp parallel for
29
  for (T i = ""; i < 4; ++i)    // { dg-error "invalid conversion from" }
30
    ;
31
}
32
 
33
template
34
void
35
f4 ()
36
{
37
  T i;
38
#pragma omp parallel for
39
  for (i = ""; i < 4; ++i)      // { dg-error "invalid conversion from" }
40
    ;
41
}
42
 
43
void
44
bar ()
45
{
46
  f1<0> ();                        // { dg-message "required from here" }
47
  f2<1> ();                        // { dg-message "required from here" }
48
  f3 ();                        // { dg-message "required from here" }
49
  f4 ();                        // { dg-message "required from here" }
50
}

powered by: WebSVN 2.1.0

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