summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/complex-3.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-19 06:32:31 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-06-19 06:32:31 +0000
commita3152c31e8466783765f476956a7653ff2d002e5 (patch)
treeaace88511c766aed127001b3380bf080e98f0a29 /gcc/testsuite/gcc.c-torture/compile/complex-3.c
parentf141bcd58e74207468822ddc51c5d5d14037c50e (diff)
downloadgcc-a3152c31e8466783765f476956a7653ff2d002e5.tar.gz
PR tree-opt/22116
* tree-ssa-pre.c (create_expression_by_pieces): Set DECL_COMPLEX_GIMPLE_REG_P. (insert_into_preds_of_block): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101177 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/complex-3.c')
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/complex-3.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/complex-3.c b/gcc/testsuite/gcc.c-torture/compile/complex-3.c
new file mode 100644
index 00000000000..f12a8f9da4a
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/complex-3.c
@@ -0,0 +1,17 @@
+/* PR 22116 */
+
+void g(_Complex float);
+_Complex float f(int data, _Complex float x, _Complex float y)
+{
+ _Complex float i, t;
+ if (data)
+ {
+ i = x + __imag__ y;
+ g(i);
+ }
+ else
+ i = 5;
+ t = x + __imag__ y;
+ g(t);
+ return t * i;
+}