re PR other/22393 (ICE in emit_move_insn, at expr.c:3142)
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Thu, 21 Jul 2005 09:57:05 +0000 (09:57 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Thu, 21 Jul 2005 09:57:05 +0000 (09:57 +0000)
PR c/22393
* gcc.dg/complex-4.c: New test.

From-SVN: r102229

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/complex-4.c [new file with mode: 0644]

index 10e954870ba1756b402f8c519a83626aab6f0e91..faf36f7d8253ae04a34ffd514718c4553579c71d 100644 (file)
@@ -1,3 +1,8 @@
+2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
+       PR c/22393
+       * gcc.dg/complex-4.c: New test.
+
 2005-07-21  Richard Guenther  <rguenther@suse.de>
 
        PR testsuite/22522
diff --git a/gcc/testsuite/gcc.dg/complex-4.c b/gcc/testsuite/gcc.dg/complex-4.c
new file mode 100644 (file)
index 0000000..6becd3b
--- /dev/null
@@ -0,0 +1,7 @@
+/* PR c/22393 */
+/* { dg-options "-O -std=gnu99" } */
+
+__complex__ double foo (__complex__ double x)
+{
+    return 1.0 / x * -1.0i;
+}