summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/complex-4.c
diff options
context:
space:
mode:
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-21 09:57:05 +0000
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-21 09:57:05 +0000
commitfb006ae445d58a27650c5dc79a81b7cfda9a9ace (patch)
tree84ca56374ae5e1291068f41fcc4e2362fc8909d2 /gcc/testsuite/gcc.dg/complex-4.c
parent53d4262e94ab0e2ca3eb7c171814bbf0544a9e8c (diff)
downloadgcc-fb006ae445d58a27650c5dc79a81b7cfda9a9ace.tar.gz
PR c/22393
* gcc.dg/complex-4.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102229 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/complex-4.c')
-rw-r--r--gcc/testsuite/gcc.dg/complex-4.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/complex-4.c b/gcc/testsuite/gcc.dg/complex-4.c
new file mode 100644
index 00000000000..6becd3b9474
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/complex-4.c
@@ -0,0 +1,7 @@
+/* PR c/22393 */
+/* { dg-options "-O -std=gnu99" } */
+
+__complex__ double foo (__complex__ double x)
+{
+ return 1.0 / x * -1.0i;
+}