URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* Test diagnostics for bad type conversion when inlining unprototyped
|
/* Test diagnostics for bad type conversion when inlining unprototyped
|
functions: should not be errors with -pedantic-errors. */
|
functions: should not be errors with -pedantic-errors. */
|
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
|
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O3 -std=c99 -pedantic-errors" } */
|
/* { dg-options "-O3 -std=c99 -pedantic-errors" } */
|
|
|
/* This is valid to execute, so maybe shouldn't warn at all. */
|
/* This is valid to execute, so maybe shouldn't warn at all. */
|
void f0(x) signed char *x; { }
|
void f0(x) signed char *x; { }
|
void g0(unsigned char *x) { f0(x); } /* { dg-warning "warning: pointer targets in passing argument 1 of 'f0' differ in signedness" } */
|
void g0(unsigned char *x) { f0(x); } /* { dg-warning "warning: pointer targets in passing argument 1 of 'f0' differ in signedness" } */
|
|
|
/* This is undefined on execution but still must compile. */
|
/* This is undefined on execution but still must compile. */
|
void f1(x) int *x; { }
|
void f1(x) int *x; { }
|
void g1(unsigned int *x) { f1(x); } /* { dg-warning "warning: pointer targets in passing argument 1 of 'f1' differ in signedness" } */
|
void g1(unsigned int *x) { f1(x); } /* { dg-warning "warning: pointer targets in passing argument 1 of 'f1' differ in signedness" } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.