1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 int a;
4 int
5 elantech_detect (void)
6 {
7 return -38;
8 }
9 inline int
10 fsp_detect (void)
11 {
12 return -38;
13 }
14 void
15 psmouse_extensions (void)
16 {
17 int (*b)() = fsp_detect;
18 a = b ();
19 }
20 /* { dg-final { scan-tree-dump-not "fsp_detect" "optimized" } } */