summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr46255.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr46255.c')
-rw-r--r--gcc/testsuite/gcc.dg/pr46255.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr46255.c b/gcc/testsuite/gcc.dg/pr46255.c
new file mode 100644
index 000000000..e3c9fa767
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr46255.c
@@ -0,0 +1,12 @@
+/* PR debug/46255 */
+/* { dg-do compile } */
+/* { dg-options "-fcompare-debug -fprofile-generate -O" } */
+
+int bar (void);
+
+void
+foo (int i)
+{
+ while (i)
+ i = bar ();
+}