X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Feh%2Ftemplate1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Feh%2Ftemplate1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=2cbf9c698b081bb7ae75eeeca52abccea6495f14;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/eh/template1.C b/gcc/testsuite/g++.dg/eh/template1.C deleted file mode 100644 index 2cbf9c69..00000000 --- a/gcc/testsuite/g++.dg/eh/template1.C +++ /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 -struct B -{ - typedef A E; -}; - -template -struct C -{ - typedef B D; - typedef typename D::E E; - void f() throw(E) { throw E(); } -}; - -int main() -{ - int caught = 0; - try - { - C x; - x.f(); - } - catch (A) - { - ++caught; - } - if (caught != 1) - abort (); - return 0; -}