Commit e4cd04f4 by Dale Johannesen Committed by Dale Johannesen

20050607-1.c: New.

2005-06-07  Dale Johannesen  <dalej@apple.com>

        * gcc.dg/20050607-1.c:  New.

From-SVN: r100729
parent 022a8174
2005-06-07 Dale Johannesen <dalej@apple.com>
* gcc.dg/20050607-1.c: New.
2005-06-07 Jakub Jelinek <jakub@redhat.com>
PR middle-end/21850
......
/* { 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment