Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/tree-prof/time-profiler-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* { dg-options "-O2 -fdump-ipa-profile" } */ | |
2 | |
3 __attribute__ ((noinline)) | |
4 int foo() | |
5 { | |
6 return 0; | |
7 } | |
8 | |
9 __attribute__ ((noinline)) | |
10 int bar() | |
11 { | |
12 return 1; | |
13 } | |
14 | |
15 int main () | |
16 { | |
17 return foo (); | |
18 } | |
19 /* { dg-final-use-not-autofdo { scan-ipa-dump-times "Read tp_first_run: 0" 1 "profile"} } */ | |
20 /* { dg-final-use-not-autofdo { scan-ipa-dump-times "Read tp_first_run: 1" 1 "profile"} } */ | |
21 /* { dg-final-use-not-autofdo { scan-ipa-dump-times "Read tp_first_run: 2" 1 "profile"} } */ |