bd52d17906
too large to list, but see: http://gcc.gnu.org/gcc-3.4/changes.html http://gcc.gnu.org/gcc-4.0/changes.html http://gcc.gnu.org/gcc-4.1/changes.html for the details.
14 lines
288 B
C
14 lines
288 B
C
/* { dg-do compile } */
|
|
/* { dg-options "-Wpadded" }
|
|
/* The struct internally constructed for the nested function should
|
|
not result in a warning from -Wpadded. */
|
|
extern int baz(int (*) (int));
|
|
int foo(void)
|
|
{
|
|
int k = 3;
|
|
int bar(int x) {
|
|
return x + k;
|
|
}
|
|
return baz(bar);
|
|
}
|