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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [atomic-4.c] - Blame information for rev 856

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 a[4];
4
int *p;
5
struct S { int x; int y[4]; } s;
6
int *bar(void);
7
 
8
void f1(void)
9
{
10
  #pragma omp atomic
11
    a[4] += 1;
12
  #pragma omp atomic
13
    *p += 1;
14
  #pragma omp atomic
15
    s.x += 1;
16
  #pragma omp atomic
17
    s.y[*p] += 1;
18
  #pragma omp atomic
19
    s.y[*p] *= 42;
20
  #pragma omp atomic
21
    *bar() += 1;
22
  #pragma omp atomic
23
    *bar() *= 42;
24
}

powered by: WebSVN 2.1.0

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