summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/pr46782.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/debug/pr46782.c')
-rw-r--r--gcc/testsuite/gcc.dg/debug/pr46782.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/debug/pr46782.c b/gcc/testsuite/gcc.dg/debug/pr46782.c
new file mode 100644
index 000000000..1603b0922
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/debug/pr46782.c
@@ -0,0 +1,11 @@
+/* PR debug/46782 */
+/* { dg-do compile } */
+/* { dg-options "-w -O0 -fvar-tracking -fcompare-debug" } */
+
+void foo (int i)
+{
+ if (i)
+ i++;
+ while (i)
+ ;
+}