summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20051201-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/20051201-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/20051201-1.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20051201-1.c b/gcc/testsuite/gcc.dg/20051201-1.c
new file mode 100644
index 000000000..8e7798629
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20051201-1.c
@@ -0,0 +1,26 @@
+/* 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 ();
+}