1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-ipa-sra" } */
4 /* Test that parameters can be removed even when they are returned but the
7 extern int use(int use
);
10 static int __attribute__((noinline
))
11 foo(int a
, int b
, int c
)
17 static int __attribute__((noinline
))
18 bar (int a
, int b
, int c
, int d
)
20 return foo (a
, b
, c
+ d
);
24 baz (int a
, int b
, int c
, int d
)
30 /* { dg-final { scan-ipa-dump-times "Will remove parameter" 4 "sra" } } */