OSDN Git Service

New test.
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Feb 2004 08:02:59 +0000 (08:02 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 19 Feb 2004 08:02:59 +0000 (08:02 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78080 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/complex-1.c [new file with mode: 0644]

index 1e5ba50..da6f91b 100644 (file)
@@ -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 (file)
index 0000000..6ba9f04
--- /dev/null
@@ -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);
+}