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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [conv-2.c] - Rev 298

Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-Wpointer-sign" } */
 
void f1(long *); /* { dg-message "note: expected '\[^\n'\]*' but argument is of type '\[^\n'\]*'" "note: expected" } */
void f2(unsigned long *); /* { dg-message "note: expected '\[^\n'\]*' but argument is of type '\[^\n'\]*'" "note: expected" } */
 
int main()
{
  long *lp;
  unsigned long *ulp;
  char *cp;
  unsigned char *ucp;
  signed char *scp;
 
  ulp = lp;	/* { dg-warning " pointer targets in assignment differ in signedness" } */
  lp = ulp;	/* { dg-warning " pointer targets in assignment differ in signedness" } */
  f1(ulp);	/* { dg-warning " differ in signedness" } */
  f2(lp);	/* { dg-warning " differ in signedness" } */
 
  cp = ucp;	/* { dg-warning " pointer targets in assignment differ in signedness" } */
  cp = scp;	/* { dg-warning " pointer targets in assignment differ in signedness" } */
  ucp = scp;	/* { dg-warning " pointer targets in assignment differ in signedness" } */
  ucp = cp;	/* { dg-warning " pointer targets in assignment differ in signedness" } */
  scp = ucp;	/* { dg-warning " pointer targets in assignment differ in signedness" } */
  scp = cp;	/* { dg-warning " pointer targets in assignment differ in signedness" } */
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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