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-atomic-1.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
int check;
4
 
5
template void foo()
6
{
7
  #pragma omp atomic
8
  check |= sizeof(T);
9
}
10
 
11
template void bar(T *x, T y)
12
{
13
  #pragma omp atomic
14
  *x += y;
15
}
16
 
17
void test ()
18
{
19
  int i;
20
  long l;
21
 
22
  foo();
23
  foo();
24
  bar(&i, 4);
25
  bar(&l, 8L);
26
}

powered by: WebSVN 2.1.0

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