aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr42234.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr42234.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr42234.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr42234.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr42234.c
new file mode 100644
index 000000000..81bec9db8
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr42234.c
@@ -0,0 +1,14 @@
+/* { dg-options "-g" } */
+
+void
+foo (int x)
+{
+ struct S { int s; } d = { 1 };
+ unsigned int e = 1;
+ if (x)
+ e = x && d.s;
+ else
+ for (e = 0; e <= 3; e--)
+ ;
+ e++;
+}