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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.c/] [appendix-a/] [a.26.1.c] - Blame information for rev 763

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

Line No. Rev Author Line
1 735 jeremybenn
/* { dg-do run } */
2
 
3
#include <stdio.h>
4
int
5
main ()
6
{
7
  int i, j;
8
  i = 1;
9
  j = 2;
10
#pragma omp parallel private(i) firstprivate(j)
11
  {
12
    i = 3;
13
    j = j + 2;
14
  }
15
  printf ("%d %d\n", i, j);     /* i and j are undefined */
16
  return 0;
17
}

powered by: WebSVN 2.1.0

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