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/] [tpl-parallel-1.C] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
int check;
4
 
5
template void foo()
6
{
7
  check |= sizeof(T);
8
}
9
 
10
template
11
void bar(void)
12
{
13
  #pragma omp parallel if (0)
14
    foo();
15
}
16
 
17
int main()
18
{
19
  bar();
20
  bar();
21
  if (check != (sizeof(char) | sizeof(short)))
22
    __builtin_trap ();
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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