]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.mike/p991.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / p991.C
diff --git a/gcc/testsuite/g++.old-deja/g++.mike/p991.C b/gcc/testsuite/g++.old-deja/g++.mike/p991.C
deleted file mode 100644 (file)
index 037227c..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-// Build don't link:
-// prms-id: 991
-
-class Complex {
-public:
-       double re;
-       double im;
-       Complex(double r,double i) : re(r), im(i) {}
-};
-
-Complex cos(const Complex&);
-
-extern "C" double cos (double);                // not the same as the above
-extern "C" double cosh (double);
-extern "C" double sin (double);
-extern "C" double sinh (double);
-
-Complex cos(const Complex& arg) {
-       double nr = cos(arg.re)*cosh(arg.im);
-       double ni = -sin(arg.re)*sinh(arg.im);
-       return Complex(nr,ni);
-}