1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-fnsplit" } */
3 #include <stdio.h>
4 int a[1000];
5 
6 void
t(int a)7 t(int a)
8 {
9   if (a)
10     printf ("I Am Completely Operational,"),
11     printf ("And All My Circuits Are Functioning Perfectly\n");
12 }
13 int
main(void)14 main(void)
15 {
16   int i;
17   for (i = 0; i < 1000; i++)
18     t(a[i]);
19   return 0;
20 }
21 /* { dg-final { scan-tree-dump-times "Splitting function at:" 1 "fnsplit"} } */
22 /* { dg-final { scan-tree-dump-times "Invalid sum" 0 "fnsplit"} } */
23 
24