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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [pr35738.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR c/35738 */
2
/* { dg-do compile } */
3
/* { dg-options "-fopenmp" } */
4
 
5
void foo (void);
6
 
7
void
8
bar (void *p)
9
{
10
  int i = 0;
11
  char q[10];
12
#pragma omp atomic
13
  i += q;               /* { dg-warning "makes integer from pointer without a cast" } */
14
#pragma omp atomic
15
  i += foo;             /* { dg-warning "makes integer from pointer without a cast" } */
16
#pragma omp atomic
17
  i += p;               /* { dg-warning "makes integer from pointer without a cast" } */
18
}

powered by: WebSVN 2.1.0

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