aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/complex-4.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/complex-4.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/complex-4.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/complex-4.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/complex-4.c
new file mode 100644
index 000000000..cf1002903
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/complex-4.c
@@ -0,0 +1,9 @@
+/* This used to ICE because gimplify_modify_expr_complex_part was not
+ updated for the GIMPLE_MODIFY_EXPR changes in that calling
+ tree_to_gimple_tuple was needed. */
+
+void f(void)
+{
+ double _Complex Res;
+ __real__ Res = __imag__ Res = 0.0;
+}