OSDN Git Service

For Greta Yorsh.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr38338.c
1 /* PR middle-end/38338 */
2 /* { dg-options "-O0" } */
3 /* { dg-options "-O0 -fPIC" { target fpic } } */
4
5 typedef void (*fnp) (void);
6
7 static char
8 foo (char x)
9 {
10   return x;
11 }
12
13 static void *
14 bar (char x)
15 {
16   void *args = __builtin_apply_args ();
17   return __builtin_apply ((fnp) foo, args, sizeof (void *));
18 }