aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr55124.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/torture/pr55124.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/torture/pr55124.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr55124.c b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr55124.c
new file mode 100644
index 000000000..a8eec984b
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr55124.c
@@ -0,0 +1,20 @@
+/* { dg-do compile } */
+
+int a, b;
+long c;
+
+void f2(void)
+{
+ unsigned long k = 1;
+
+ foo(b ? k = 0 : 0);
+
+ b = ((c = b) ? (k ? : (c = 0)) : a) * c;
+}
+
+void f1(void)
+{
+ f2();
+
+ a = b | c;
+}