]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.robertl/ice990323-2.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.robertl / ice990323-2.C
diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-2.C b/gcc/testsuite/g++.old-deja/g++.robertl/ice990323-2.C
deleted file mode 100644 (file)
index 5d08ada..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-// check EH with templates
-extern "C" void abort ();
-extern "C" void exit (int);
-
-template <class T, int n, class U> struct A {
-       A() {}
-       A(char*) {}
-};
-
-void f1()
-{
-       throw *(new A<double, 47, A<int, 37, short> >);
-}
-
-void f2()
-{
-       throw *(new A<double, 47, A<int, 36, short> >);
-}
-
-void f3()
-{
-       throw A<double, 47, A<int, 37, short> > ("howdy");
-}
-
-void f4()
-{
-       throw A<double, 47, A<int, 36, short> > ("hi michey");
-}
-
-int main()
-{
-       int flag;
-
-       flag = 0;
-       try {
-               f1();
-       }
-       catch (A<double, 47, A<int, 36, short> >) {
-               abort();
-       }
-       catch (A<double, 47, A<int, 37, short> >) {
-               flag = 1;
-       }
-       if (!flag)
-               abort();
-
-       flag = 0;
-       try {
-               f2();
-       }
-       catch (A<double, 47, A<int, 36, short&> >) {
-               abort();
-       }
-       catch (A<double, 47, A<int, 36, short> >) {
-               flag = 1;
-       }
-       if (!flag)
-               abort();
-
-       flag = 0;
-       try {
-               f3();
-       }
-       catch (A<double, 47, A<int, 36, short> >) {
-               abort();
-       }
-       catch (A<double, 47, A<int, 37, short> >) {
-               flag = 1;
-       }
-       if (!flag)
-               abort();
-
-       flag = 0;
-       try {
-               f4();
-       }
-       catch (A<double, 47, A<int, 36, short&> >) {
-               abort();
-       }
-       catch (A<double, 47, A<int, 36, short> >) {
-               flag = 1;
-       }
-       if (!flag)
-               abort();
-
-       exit(0);
-}