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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [tpl-parallel-2.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
template
4
struct S
5
{
6
  T n;
7
  void test();
8
  void work();
9
};
10
 
11
template
12
void S::test()
13
{
14
  #pragma omp parallel num_threads(n)   // { dg-error "must be integral" }
15
    work();
16
}
17
 
18
template struct S;
19
template struct S;
20
template struct S;      // { dg-message "required from here" }

powered by: WebSVN 2.1.0

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