This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, committed] Testcase for PR c/22393


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;
+}
=============================================================================



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]