aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2004-02-19 08:02:59 +0000
committerAlan Modra <amodra@gcc.gnu.org>2004-02-19 18:32:59 +1030
commit19037b5c9e4647b07708e2414deee35c02b21f0a (patch)
tree3042854557976944e4ec22ae0a2d72720650f234 /gcc/testsuite
parent196c42cd7c8847ee6ecc43af63f841034abd493d (diff)
downloadgcc-19037b5c9e4647b07708e2414deee35c02b21f0a.zip
gcc-19037b5c9e4647b07708e2414deee35c02b21f0a.tar.gz
gcc-19037b5c9e4647b07708e2414deee35c02b21f0a.tar.bz2
New test.
From-SVN: r78080
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/complex-1.c12
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1e5ba50..da6f91b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2004-02-19 Alan Modra <amodra@bigpond.net.au>
+
+ * gcc.c-torture/compile/complex-1.c: New.
+
2004-02-19 Hans-Peter Nilsson <hp@axis.com>
PR target/14209
diff --git a/gcc/testsuite/gcc.c-torture/compile/complex-1.c b/gcc/testsuite/gcc.c-torture/compile/complex-1.c
new file mode 100644
index 0000000..6ba9f04
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/complex-1.c
@@ -0,0 +1,12 @@
+extern void u (int, int);
+extern void v (float, float);
+
+void f (__complex__ int x)
+{
+ u (0, x);
+}
+
+void g (__complex__ float x)
+{
+ v (0, x);
+}