summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/20051201-1.c
blob: c13c10852774b588a1faca43d2513f2b3bbfbefa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* This failed with profiling due to a missing check in
   tree_flow_call_edges_add.  */

/* { dg-do compile } */
/* { dg-options "-O1 -fprofile-generate" } */

static __attribute__ ((always_inline)) void 
baz ()
{
}

static __attribute__ ((always_inline)) int
bar ()
{
 out:
  baz ();
  goto out;
}

int
foo ()
{
  long res;
  
  res = bar ();
}

/* { dg-final { cleanup-coverage-files } } */
OpenPOWER on IntegriCloud