]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/profile-filtering-1.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / profile-filtering-1.c
CommitLineData
e18240ff
ML
1/* { dg-require-profiling "-fprofile-generate" } */
2/* { dg-options "-O2 -fprofile-generate -fprofile-filter-files=.\*filtering-1.c -fdump-tree-optimized" } */
3
4extern void abort (void);
5
6int *p1;
7int *p2;
8int *p3;
9
10int ga = 100;
11
12int
13sub (int i, int j)
14{
15 int k;
16 int l;
17 int m;
18 int n;
19 p1 = &k;
20 p2 = &l;
21 p3 = &m;
22 k = 20;
23 l = 30;
24 m = 40;
25 n = i / j;
26 return n + ga;
27}
28
29int
30main(void)
31{
32 if (sub (99, 33) != 103)
33 abort ();
34 return 0;
35}
36
37/* { dg-final { scan-tree-dump "PROF_edge" "optimized" } } */