X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Feh%2Fsynth1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Feh%2Fsynth1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=ac3cab8b166f2ce726a542b383ec6df542df0fd2;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/eh/synth1.C b/gcc/testsuite/g++.dg/eh/synth1.C deleted file mode 100644 index ac3cab8b..00000000 --- a/gcc/testsuite/g++.dg/eh/synth1.C +++ /dev/null @@ -1,27 +0,0 @@ -// PR c++/6179 - -// Bug: we tried to look at the fields of 'const A' to determine the proper -// exception specification for the synthesized copy constructor, but -// TYPE_FIELDS hadn't been set yet, so we incorrectly got a throw() spec. - -struct B -{ - B () {} - B (const B&) { throw 1; } -}; - -struct A; -void f (const A &) {} -struct A -{ - B b; -}; - -int main () -{ - A a; - try - { A a2 (a); } - catch (...) - { } -}