1 /* { dg-options "-O2 -fdump-ipa-profile" } */
2 
3 __attribute__ ((noinline))
foo()4 int foo()
5 {
6   return 0;
7 }
8 
9 __attribute__ ((noinline))
bar()10 int bar()
11 {
12   return 1;
13 }
14 
main()15 int main ()
16 {
17   return foo ();
18 }
19 /* { dg-final-use { scan-ipa-dump-times "Read tp_first_run: 0" 1 "profile"} } */
20 /* { dg-final-use { scan-ipa-dump-times "Read tp_first_run: 1" 1 "profile"} } */
21 /* { dg-final-use { scan-ipa-dump-times "Read tp_first_run: 2" 1 "profile"} } */
22 /* { dg-final-use { cleanup-ipa-dump "profile" } } */
23