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