aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/fnsplit-1.c
blob: 0c81d92bfa97912fb32099ffdea424c59fb703dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-fnsplit" } */
#include <stdio.h>
int a[1000];

void
t(int a)
{
  if (a)
    printf ("I Am Completely Operational,"),
    printf ("And All My Circuits Are Functioning Perfectly\n");
}
int
main(void)
{
  int i;
  for (i = 0; i < 1000; i++)
    t(a[i]);
  return 0;
}
/* { dg-final { scan-tree-dump-times "Splitting function at:" 1 "fnsplit"} } */

/* { dg-final { cleanup-tree-dump "fnsplit" } } */