1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized --param early-inlining-insns=14" } */
3 #define _UNUSED_ __attribute__((__unused__))
5 typedef int TEST_F30 (int *v
);
6 typedef void TEST_F31 (int *v
);
7 typedef void TEST_F32 (int *v
, int r
);
9 typedef struct TEST_T30_
{
23 void test_f31 (int *v _UNUSED_
)
28 void test_f32 (int *v
, int r _UNUSED_
)
41 int test_f10 (const TEST_T30
*pt30
, int *v
)
43 int r
= pt30
->pf30(v
);
51 return test_f10(&test_t30
, v
);
54 /* Everything should be inlined and only test_f00 body should appear. */
55 /* { dg-final { scan-tree-dump-not "test_f10" "optimized" } } */
56 /* { dg-final { scan-tree-dump-not "test_f3" "optimized" } } */