view gcc/testsuite/gcc.dg/20051201-1.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* This failed with profiling due to a missing check in
   tree_flow_call_edges_add.  */

/* { dg-do compile } */
/* { dg-require-profiling "-fprofile-generate" } */
/* { dg-options "-O1 -fprofile-generate -Wno-attributes" } */

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

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

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