X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fopt%2Finline1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Fopt%2Finline1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=55b931138a115474249b6c843a109f4084dc45b6;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/opt/inline1.C b/gcc/testsuite/g++.dg/opt/inline1.C deleted file mode 100644 index 55b93113..00000000 --- a/gcc/testsuite/g++.dg/opt/inline1.C +++ /dev/null @@ -1,43 +0,0 @@ -// PR c++/6316 -// This testcase ICEd because when deferred bar()::F::F() was being -// expanded, containing bar() was still deferred and had DECL_EXTERNAL set -// (and DECL_NOT_REALLY_EXTERN too). -// { dg-do compile } -// { dg-options "-O3" } - -struct A { ~A() throw() {} }; -template struct B { U a; B(const T *); }; -typedef B C; -struct D { D(); }; -struct E { virtual ~E(); }; - -E *bar (); - -void -foo () -{ - E *a = bar (); -} - -extern char *z []; - -E * -bar () -{ - struct F : public E - { - F () - { - for (int i = 0; i < 2; i++) - C e = z[i]; - } - D x, y; - }; - return new F (); -} - -int -main () -{ - foo (); -}