1 /* This failed with profiling due to a missing check in
2    tree_flow_call_edges_add.  */
3 
4 /* { dg-do compile } */
5 /* { dg-require-profiling "-fprofile-generate" } */
6 /* { dg-options "-O1 -fprofile-generate -Wno-attributes" } */
7 
8 static __attribute__ ((always_inline)) void
baz()9 baz ()
10 {
11 }
12 
13 static __attribute__ ((always_inline)) int
bar()14 bar ()
15 {
16  out:
17   baz ();
18   goto out;
19 }
20 
21 int
foo()22 foo ()
23 {
24   long res;
25 
26   res = bar ();
27 }
28