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 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-Wpadded" }
|
/* { dg-options "-Wpadded" }
|
/* The struct internally constructed for the nested function should
|
/* The struct internally constructed for the nested function should
|
not result in a warning from -Wpadded. */
|
not result in a warning from -Wpadded. */
|
extern int baz(int (*) (int));
|
extern int baz(int (*) (int));
|
int foo(void)
|
int foo(void)
|
{
|
{
|
int k = 3;
|
int k = 3;
|
int bar(int x) {
|
int bar(int x) {
|
return x + k;
|
return x + k;
|
}
|
}
|
return baz(bar);
|
return baz(bar);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.