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 old-style definition not matching prior
|
/* Test diagnostics for old-style definition not matching prior
|
prototype are present and give correct location for that prototype
|
prototype are present and give correct location for that prototype
|
(bug 15698). Original test. */
|
(bug 15698). Original test. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-std=gnu99" } */
|
/* { dg-options "-std=gnu99" } */
|
|
|
int foobar ();
|
int foobar ();
|
|
|
int func (int blah)
|
int func (int blah)
|
{
|
{
|
char *rindex();
|
char *rindex();
|
}
|
}
|
|
|
int foobar ()
|
int foobar ()
|
{
|
{
|
return 0;
|
return 0;
|
}
|
}
|
|
|
char *rindex(a, b)
|
char *rindex(a, b)
|
register char *a, b;
|
register char *a, b;
|
{ /* { dg-warning "warning: argument 'a' doesn't match built-in prototype" } */
|
{ /* { dg-warning "warning: argument 'a' doesn't match built-in prototype" } */
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.