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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [atomic-14.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// PR middle-end/45423
2
// { dg-do compile }
3
// { dg-options "-fopenmp" }
4
 
5
bool *baz (), atomicvar;
6
 
7
int
8
foo (void)
9
{
10
  #pragma omp atomic
11
    (*baz ())--;        // { dg-error "invalid use of Boolean" }
12
  #pragma omp atomic
13
    --(*baz ());        // { dg-error "invalid use of Boolean" }
14
  #pragma omp atomic
15
    atomicvar--;        // { dg-error "invalid use of Boolean" }
16
  #pragma omp atomic
17
    --atomicvar;        // { dg-error "invalid use of Boolean" }
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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