[patch, committed] Testcase for PR c/22393

Volker Reichelt reichelt@igpm.rwth-aachen.de
Thu Jul 21 10:07:00 GMT 2005


The following patch adds a testcase for PR 22393 which was fixed by
Andrew Pinski's patch for PR 22356.

In contrast to the testcase in PR 22356, the testcase below already
triggered with an unmodified compiler.

Tested on i686-pc-linux-gnu.
Committed to mainline as obvious.

Regards,
Volker


2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>

	PR c/22393
	* gcc.dg/complex-4.c: New test.

=============================================================================
--- gcc/gcc/testsuite/gcc.dg/complex-4.c	2005-06-27 13:32:40.055820328 +0200
+++ gcc/gcc/testsuite/gcc.dg/complex-4.c	2005-07-19 16:21:49.000000000 +0200
@@ -0,0 +1,7 @@
+/* PR c/22393 */
+/* { dg-options "-O -std=gnu99" } */
+
+__complex__ double foo (__complex__ double x)
+{
+    return 1.0 / x * -1.0i;
+}
=============================================================================




More information about the Gcc-patches mailing list