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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [Wno-pointer-sign.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-Wno-pointer-sign" } */
3
 
4
void f1(long *);
5
void f2(unsigned long *);
6
 
7
int main()
8
{
9
  long *lp;
10
  unsigned long *ulp;
11
  char *cp;
12
  unsigned char *ucp;
13
  signed char *scp;
14
 
15
  ulp = lp;     /* { dg-bogus " pointer targets in assignment differ in signedness" } */
16
  lp = ulp;     /* { dg-bogus " pointer targets in assignment differ in signedness" } */
17
  f1(ulp);      /* { dg-bogus " differ in signedness" } */
18
  f2(lp);       /* { dg-bogus " differ in signedness" } */
19
 
20
  cp = ucp;     /* { dg-bogus " pointer targets in assignment differ in signedness" } */
21
  cp = scp;     /* { dg-bogus " pointer targets in assignment differ in signedness" } */
22
  ucp = scp;    /* { dg-bogus " pointer targets in assignment differ in signedness" } */
23
  ucp = cp;     /* { dg-bogus " pointer targets in assignment differ in signedness" } */
24
  scp = ucp;    /* { dg-bogus " pointer targets in assignment differ in signedness" } */
25
  scp = cp;     /* { dg-bogus " pointer targets in assignment differ in signedness" } */
26
}

powered by: WebSVN 2.1.0

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