]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.dg/eh/template1.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.dg / eh / template1.C
diff --git a/gcc/testsuite/g++.dg/eh/template1.C b/gcc/testsuite/g++.dg/eh/template1.C
deleted file mode 100644 (file)
index 2cbf9c6..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-// Test whether exception specifier dependent on template parameter
-// is accepted during template decl processing.
-// { dg-do run }
-
-extern "C" void abort();
-
-class A {};
-
-template <class T>
-struct B
-{
-  typedef A E;
-};
-
-template <class T>
-struct C
-{
-  typedef B<T> D;
-  typedef typename D::E E;
-  void f() throw(E) { throw E(); }
-};
-
-int main()
-{
-  int caught = 0;
-  try
-    {
-      C<int> x;
-      x.f();
-    }
-  catch (A)
-    {
-      ++caught;
-    }
-  if (caught != 1)
-    abort ();
-  return 0;
-}