This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch, committed] Testcase for PR c/22393
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 Jul 2005 12:04:46 +0200 (CEST)
- Subject: [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;
+}
=============================================================================