This commit was manufactured by cvs2svn to create tag
'gcc-2_95_3-test5'.
From-SVN: r40410
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
deleted file mode 100644
index 64ec141..0000000
--- a/gcc/testsuite/ChangeLog
+++ /dev/null
@@ -1,3197 +0,0 @@
-Sun Oct 24 23:54:10 PDT 1999 Jeff Law (law@cygnus.com)
-
- * gcc-2.95.2 Released.
-
-Mon Aug 16 01:29:24 PDT 1999 Jeff Law (law@cygnus.com)
-
- * gcc-2.95.1 Released.
-
-Wed Jul 28 21:39:31 PDT 1999 Jeff Law (law@cygnus.com)
-
- * gcc-2.95 Released.
-
-Sun Jul 25 23:40:51 PDT 1999 Jeff Law (law@cygnus.com)
-
- * gcc-2.95 Released.
-
-Sun Jul 25 21:41:37 1999 Jeffrey A Law (law@cygnus.com)
-
- * README: More listname related changes.
-
-1999-06-05 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/compile/19990502-0.f: Replace with new,
- shorter, test that still fails after recent changes.
-
-Wed May 19 02:56:18 1999 Raja R Harinath <harinath@cs.umn.edu>
-
- * gcc.c-torture/compile/990519-1.c: New test.
-
-1999-05-17 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
-
- * gcc.c-torture/compile/990517-1.c: New test.
-
- * gcc.c-torture/execute/990326-1.c: Force bitfields to be aligned.
- (e4, f4): New tests.
- (main): Call them.
-
-1999-05-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * gcc.dg/noreturn-1.c: New test.
-
-Thu May 13 02:02:46 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
-
- * gcc.c-torture/execute/990513-1.c: New test.
-
-1999-05-10 Richard Henderson <rth@cygnus.com>
-
- * g++.old-deja/g++.other/null1.C (g): Add overload for long.
-
-1999-05-10 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/execute/erfc.f: Use small single-precision
- values, to avoid problems on Alphas when not -mieee.
-
-1999-05-08 Craig Burley <craig@jcb-sc.com>
-
- * gcc.dg/990506-0.c: New test.
-
-1999-05-08 Richard Henderson <rth@cygnus.com>
-
- * g++.old-deja/g++.benjamin/p12475.C: Use LONG_MAX to find
- the constant to test. Don't XFAIL 64-bit targets.
-
- * g++.old-deja/g++.jason/thunk3.C: Don't XFAIL Alpha.
- * g++.old-deja/g++.law/profile1.C: Likewise.
-
- * g++.old-deja/g++.other/delete4.C: Define size_t; use it in all
- operator new instances.
- * g++.old-deja/g++.other/delete5.C: Likewise.
-
-1999-05-03 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/execute/u77-test.f (main): Declare ABORT as
- intrinsic.
-
-1999-05-03 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/execute/u77-test.f: Reverse order of two
- arguments to CTIME_subr, DTIME_subr, ETIME_subr, and TTYNAM_subr.
-
-1999-05-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
-
- * gcc.dg/compare1.c: New test.
-
-1999-05-02 Joseph S. Myers <jsm28@cam.ac.uk>
-
- * gcc.dg/cast-qual-1.c, gcc.dg/return-type-1.c, gcc.dg/unused-1.c:
- New tests.
-
-1999-05-02 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/compile/19990502-1.f: New test.
-
-1999-05-02 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/compile/19990502-0.f: New test.
-
-Sun May 2 01:38:50 1999 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/execute/u77-test.f (main): Declare FTELL as
- intrinsic.
-
-Sun May 2 01:13:37 1999 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/execute/u77-test.f (main): List libU77
- intrinsics not currently tested.
- Add tests for TIME8, CTIME_subr, IARGC, TTYNAM_subr,
- GETENV, FDATE_subr, DTIME_subr, ETIME_subr, DATE, ITIME,
- FTELL_subr, MCLOCK, MCLOCK8, and CPU_TIME.
- Trim blanks off the ends of some printed strings.
-
-Sun May 2 00:06:45 1999 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/execute/u77-test.f (main): Just warn about
- FSTAT gid disagreement, as it's expected on some systems.
-
-Sat May 1 23:57:18 1999 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/execute/u77-test.f: Generalize sum-checking to
- use a new function, which allows for some slop.
- Clean up some commentary.
- (issum): The new function.
- (sgladd): Deleted subroutine.
-
-1999-05-01 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/execute/u77-test.f: Modify to be more like
- libf2c/libU77 version, bringing patches to that version here.
- Add suitable commentary.
-
-Sun Apr 25 12:28:59 1999 Richard Henderson <rth@cygnus.com>
-
- * gcc.dg/990424-1.c: New test.
-
-1999-04-24 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/execute/u77-test.f (main): Bug involving
- LSTAT has been fixed, so turn back on full checking.
-
-1999-04-20 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/compile/19990419-0.f: New test.
- * g77.f-torture/execute/19990419-1.f: New test.
-
-Sat Apr 17 16:56:48 1999 Richard Henderson <rth@cygnus.com>
-
- * gcc.dg/uninit-9.c (func): Use __builtin_alloca instead of alloca
- to avoid the need for a prototype to supress a warning.
-
-Sun Apr 4 04:02:53 1999 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/990404-1.c: New test.
-
-1999-04-03 10:35 -0500 Zack Weinberg <zack@rabi.columbia.edu>
-
- * gcc.dg/cpp-if1.c: Adjust regexps to accommodate cccp.
- * gcc.dg/cpp-if3.c: Don't use -pedantic.
- * gcc.misc-tests/m-un-2.c: Adjust regexps for new format of
- missing initializer warnings.
-
-Sun Mar 28 00:49:41 1999 Jeffrey A Law (law@cygnus.com)
-
- * lib/objc-torture.exp: Replace "77" with "Obj-C" in pattern
- matching strings.
-
-Fri Mar 26 00:50:46 1999 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/990326-1.c: New test from Charles Hannum.
-
-1999-03-26 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/execute/19990325-0.f: New test.
- * g77.f-torture/execute/19990325-1.f: New test.
-
-Wed Mar 24 22:50:50 1999 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/990324-1.c: New test.
-
-1999-03-13 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/execute/19990313-2.f: New test.
- * g77.f-torture/execute/19990313-3.f: New test.
-
-1999-03-13 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/execute/19990313-0.f: New test.
- * g77.f-torture/execute/19990313-1.f: New test.
-
-1999-03-08 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/execute/19981119-0.f: Improve testiness.
-
-1999-03-08 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/compile/19990305-0.f: New test.
- * g77.f-torture/execute/19981119-0.f: New test.
-
-1999-03-08 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/execute/970625-2.f: call ABORT if final
- result is not correct, instead of just printing it.
- Add this checking via newly introduced obfuscation, to
- trip up buggy front ends.
-
-1999-03-07 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/compile/960317-1.f: Moved from being
- in execute/. (Somehow I didn't notice "SUBROUTINE...".)
-
-1999-03-06 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/execute/960317-1.f: New (old) test.
- * g77.f-torture/execute/970625-2.f: Ditto.
-
-Mon Mar 1 23:29:14 1999 Jeffrey A Law (law@cygnus.com)
-
- * g++.old-deja/g++.law/weak1.C: New test.
-
-1999-02-28 17:59 -0500 Zack Weinberg <zack@rabi.columbia.edu>
-
- * gcc.c-torture/execute/990119-1.c: Renamed to...
- * gcc.dg/990119-1.c: this, so it will only be tested once
- (it's a preprocessor test, it doesn't need to be run at
- multiple optimization levels).
-
-1999-02-27 13:34 -0500 Zack Weinberg <zack@rabi.columbia.edu>
-
- * lib/g++.exp: Don't add incdir=$base_dir/../include to
- ALWAYS_CXXFLAGS.
-
-1999-02-24 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/noncompile/19981216-0.f: Renamed from...
- * g77.f-torture/compile/19981216-0.f: ...as it is expected
- to not be compilable by current g77.
-
-1999-02-24 Nick Clifton <nickc@cygnus.com>
-
- * lib/c-torture.exp: Add -O3 to TORTURE_OPTIONS list.
-
-Mon Feb 22 01:15:08 1999 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/990222-1.c: New test.
-
-1999-02-19 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/compile/19990218-0.f: New test.
- * g77.f-torture/noncompile/19990218-1.f: New test.
-
-1999-02-18 Craig Burley <craig@jcb-sc.com>
-
- * g77.f-torture/compile/19981216-0.f: New test.
-
-Sun Feb 14 01:26:29 1999 Jeffrey A Law (law@cygnus.com)
-
- * gcc.dg/990214-1.c: New test.
-
-Sat Feb 13 00:43:52 1999 Jeffrey A Law (law@cygnus.com)
-
- * gcc.dg/990213-2.c: New test.
-
- * gcc.dg/990213-1.c: New test.
-
-Fri Feb 12 11:04:35 1999 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/990106-2.c: Update to work on targets with 16bit
- ints.
-
-1999-02-11 Nick Clifton <nickc@cygnus.com>
-
- * lib/gcc.exp (proc gcc_target_compile): Add support for timeout
- specified by target.
-
- * lib/chill.exp: Fix typo: doesn'timeout -> doesn't
-
-Thu Feb 11 01:12:12 1999 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/990211-1.c: New test from Nathan SIdwell.
-
-Wed Feb 10 13:08:12 1999 Jonathan Larmour <jlarmour@cygnus.co.uk>
-
- * gcc.dg/special/ecos.exp: New test driver for new tests with
- special requirements.
-
- * gcc.dg/special/alias-1.c: New test.
- * gcc.dg/special/gcsec-1.c: New test.
- * gcc.dg/special/weak-1.c: New test.
- * gcc.dg/special/weak-1a.c: Accompanying file to weak-1.c.
- * gcc.dg/special/weak-2.c: New test.
- * gcc.dg/special/weak-2a.c: Accompanying file to weak-2.c.
- * gcc.dg/special/weak-2b.c: Accompanying file to weak-2.c.
- * gcc.dg/special/wkali-1.c: New test.
- * gcc.dg/special/wkali-2.c: New test.
- * gcc.dg/special/wkali-2a.c: Accompanying file to wkali-2.c.
- * gcc.dg/special/wkali-2b.c: Accompanying file to wkali-2.c.
-
-Wed Feb 10 12:15:35 1999 Felix Lee <flee@cygnus.com>
-
- * lib/c-torture.exp (c-torture-compile): Pull out code for
- analyzing gcc error messages.
- (c-torture-execute): Likewise. Fix some (harmless) false
- positives.
- * lib/gcc.exp (gcc_check_compile): New function.
-
-Mon Feb 8 21:42:57 1999 Richard Henderson <rth@cygnus.com>
-
- * gcc.c-torture/execute/990208-1.c: New test.
-
-1999-02-07 Jonathan Larmour <jlarmour@cygnus.co.uk>
-
- * g++.dg/special/ecos.exp: New driver for new tests with special
- requirements
-
- * g++.dg/special/conpr-1.C: New test
- * g++.dg/special/conpr-2.C: New test
- * g++.dg/special/conpr-2a.C: New test
- * g++.dg/special/conpr-3.C: New test
- * g++.dg/special/conpr-3a.C: New test
- * g++.dg/special/conpr-3b.C: New test
-
- * lib/g++-dg.exp: New driver file, based on lib/gcc-dg.exp to
- allow g++ to use the dg driver
-
- * README: Add comment about g++.dg directory
-
-Sat Feb 6 18:00:38 1999 Jeffrey A Law (law@cygnus.com)
-
- * README: Update email addresses.
-
-Sat Jan 30 16:22:47 1999 Richard Henderson <rth@cygnus.com>
-
- * gcc.c-torture/execute/990130-1.c: New test.
-
-Sat Jan 30 11:10:06 1999 Jeffrey A Law (law@cygnus.com)
-
- * gcc.dg/990130-1.c: New test.
-
-1999-01-27 Felix Lee <flee@cygnus.com>
-
- * lib/c-torture.exp (c-torture-compile): pull out code for
- analyzing gcc error messages.
- (c-torture-execute): ditto, and fix some (harmless) false
- positives.
- * lib/gcc.exp (gcc_check_compile): new function.
-
-Sun Jan 17 00:02:33 1999 Jeffrey A Law (law@cygnus.com)
-
- * gcc.dg/990117-1.c: New test.
-
- * gcc.c-torture/compile/990117-1.c: New test from Horst von Brand.
-
- * gcc.c-torture/execute/990117-1.c: New test from HJ Lu.
-
-Fri Jan 15 02:52:00 1999 Jeffrey A Law (law@cygnus.com)
-
- * g77.f-torture/compile/990115-1.f: New test.
-
-Thu Jan 7 23:39:47 1999 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/compile/990107-1.c: New test
-
-Wed Jan 6 02:21:59 1999 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/990106-2.c: New test.
-
- * gcc.c-torture/execute/990106-1.c: New test.
-
-Wed Dec 30 23:05:28 1998 Zack Weinberg <zack@rabi.columbia.edu>
-
- * gcc.c-torture/compile/981223-1.c: New test.
-
-Tue Dec 29 11:33:25 1998 Richard Henderson <rth@cygnus.com>
-
- * gcc.c-torture/execute/bcp-1.c (bad10): Rename from opt3.
- (opt3): Rename from opt4 and disable.
-
-1998-12-20 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.pt/ptrmem5.C: New test.
-
-1998-12-15 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.other/conv5.C: New test.
-
-Fri Dec 11 10:25:57 1998 Jeffrey A Law (law@cygnus.com)
-
- * g++.old-deja/g++.benjamin/p12475.C: Expect failure on mips64 targets.
-
-Fri Dec 11 01:12:45 1998 Zack Weinberg <zack@rabi.columbia.edu>
-
- * gcc.c-torture/compile/981211-1.c: New test.
-
-1998-12-09 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * gcc.dg/ultrasp1.c: Empty dg-options, avoid `long long' warnings.
-
- * g++.old-deja/g++.pt/instantiate6.C: Linker error, not crash.
-
-Tue Dec 8 22:50:04 1998 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
-
- * gcc.special/930510-1.c: Make C9X safe.
- * gcc.misc-tests/gcov-1.c Similarly.
- * gcc.misc-tests/gcov-2.c Similarly.
-
-1998-12-06 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * gcc.dg/ultrasp1.c: New test.
-
-Sun Dec 6 00:40:12 1998 Richard Henderson <rth@cygnus.com>
-
- * gcc.c-torture/execute/981206.c: New test.
-
-1998-12-06 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.ns/template7.C: New test.
-
- * g++.old-deja/g++.other/expr1.C: New test.
-
- * g++.old-deja/g++.eh/tmpl3.C: New test.
-
- * g++.old-deja/g++.eh/tmpl2.C: New test.
-
-1998-12-04 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.other/using5.C: Usified using[567].C here.
- * g++.old-deja/g++.other/using6.C: Removed.
- * g++.old-deja/g++.other/using7.C: Mark Mitchel removed it.
-
- * g++.old-deja/g++.pt/spec20.C: Re-insert non-bogus ERROR marks.
-
-1998-12-03 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.pt/overload8.C: New test.
-
- * g++.old-deja/g++.pt/overload7.C: New test.
-
- * g++.old-deja/g++.pt/spec20.C: ERROR marks were bogus.
-
- * lib/old-dejagnu.exp (old-dejagnu): Ignore collect recompiling
- and relinking messages.
- * lib/g++.exp (g++_target_compile): Remove .rpo file when
- compiling with -frepo.
-
-1998-12-01 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.pt/lookup6.C: New test.
-
-1998-11-27 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.pt/explicit76.C: New test.
-
- * g++.old-deja/g++.pt/friend38.C: New test.
-
- * g++.old-deja/g++.ns/crash2.C: New test.
-
- * g++.old-deja/g++.pt/defarg8.C: New test.
-
- * g++.old-deja/g++.pt/instantiate6.C: New test.
-
- * g++.old-deja/g++.pt/static6.C: New test.
-
- * g++.old-deja/g++.pt/decl2.C: New test.
-
-1998-11-26 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.other/lookup5.C: New test. Not sure the
- problem is actually related with name lookup, but so what? :-)
-
- * g++.old-deja/g++.pt/friend37.C: New test.
-
-1998-11-25 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/execute/u77-test.f (main): Avoid testing [f]statb
- element, which fails on some systems.
-
- * g77.f-torture/execute/labug1.f: New test.
-
-Sat Nov 21 21:41:05 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/980526-1.c: Do nothing if NO_LABEL_VALUES
- is defined.
-
-1998-11-18 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/compile/981117-1.f: New test.
-
-1998-11-16 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.eh/throw2.C: New test. CV-qualifiers are not
- properly discarded.
-
-1998-11-07 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
-
- * README: New file, general information about the testsuite and
- new description of the various C++ test subdirectories.
- * README.g++: Eliminate obsolete information, update and move most
- relevant stuff to README.
-
-Sat Nov 7 02:55:55 1998 Richard Henderson <rth@cygnus.com>
-
- * gcc.c-torture/compile/981107-1.c: New test.
-
-Mon Nov 2 11:16:03 1998 Doug Evans <devans@canuck.cygnus.com>
-
- * execute/memcpy-bi.c: New testcase.
-
-1998-10-31 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.pt/sizeof3.C: A similar testcase not involving
- base classes.
-
- * g++.old-deja/g++.pt/sizeof2.C: Incorrect specialization of base
- template is selected.
-
- * g++.old-deja/g++.ext/arrnew2.C: If new T[n](i) is accepted for
- classes, it should be accepted for all types.
-
- * g++.old-deja/g++.eh/sjlj1.C: Test checked sjlj-exception.
-
- * g++.old-deja/g++.pt/spec24.C: Ensure that template
- specializations start with template headers.
-
-1998-10-29 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.other/dcast2.C: Cannot dynamic downcast &x.
-
- * g++.old-deja/g++.other/init9.C: Test cross initialization of
- non-POD types.
-
-1998-10-27 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * lib/old-dejagnu.exp (old-dejagnu): Document `Additional sources'.
-
-Thu Oct 22 16:01:44 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
-
- * compile/981022-1.c, compile/981022-1.x: New test and driver.
-
-Mon Oct 19 14:03:07 1998 Jeffrey A Law (law@cygnus.com)
-
- * 981019-1.c: New test.
-
-Wed Oct 14 21:11:19 1998 Robert Lipe <robertl@dgii.com>
-
- * lib/objc-torture.exp (objc-torture-execute): Add -I so we can
- find objc headers.
-
-1998-10-14 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
-
- * compile/981001-4.c: Remove use of GCC extension that triggers a
- compiler bug.
-
-1998-10-13 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * lib/old-dejagnu.exp (old-dejagnu): Support `Additional sources:'.
-
-1998-10-12 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.pt/explicit74.C: New test. Explicit
- instantiation of template produces incorrect code for delete
- expression.
-
- * g++.old-deja/g++.pt/instantiate5.C: New test. `global
- constructors' name is not unique.
- * g++.old-deja/g++.pt/instantiate5.cc: Ditto.
- * g++.old-deja/g++.pt/instantiate5-main.cc: Ditto.
-
- * g++.old-deja/g++.other/init8.C: New test. Uninitialized
- automatic array of const is ill-formed.
-
- * g++.old-deja/g++.pt/ttp53.C: New test. Incorrect substitution
- of template parameter?
-
- * g++.old-deja/g++.other/conv3.C: New test. Conversion discards
- const.
-
- * g++.old-deja/g++.other/pmf2.C: New test. Invalid
- pointer-to-member expression.
-
- * g++.old-deja/g++.other/friend5.C: New test. Bogus friend
- declaration causes ICE.
-
-1998-10-11 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.ns/main1.C: New test. main() should only be
- reserved in the global namespace.
-
- * g++.old-deja/g++.pt/instantiate4.C: New test: -frepo does not
- generate needed virtual table.
-
- * lib/old-dejagnu.exp (old-dejagnu): Support `Build then link:'.
-
-1998-10-10 Dariush Eslimi <eslimi@loran.com>
-
- * g++.old-deja/g++.ext/typeof1.C: New test; typeof based on
- template-dependent type
-
-1998-10-10 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.brendan/parse3.C: XFAILs, not ERRORs.
- * g++.old-deja/g++.brendan/parse5.C: XFAILs, not ERRORs.
- * g++.old-deja/g++.brendan/parse6.C: XFAILs, not ERRORs.
-
- * g++.old-deja/g++.other/using5.C: New test; using decl from base
- class should be usable as argument of member function.
- * g++.old-deja/g++.other/using6.C: New test; using decl from base
- class should be usable as return type of member function.
- * g++.old-deja/g++.other/using7.C: New test; using decl from base
- class should be usable as type of data member.
-
- * g++.old-deja/g++.ns/extern1.C: Fix XFAIL mark.
-
-Fri Oct 9 19:19:19 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/special/920521-1.c: Fix bogus test.
-
-Thu Oct 8 19:14:05 1998 Nick Clifton <nickc@cygnus.com>
-
- * gcc.dg/dll-?.c Add thumb to target list.
- Fix assembler scan patterns to match current assembler output.
-
-1998-10-08 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.pt/expr6.C: New test. operator?: breaks
- matching of template brackets.
-
- * g++.old-deja/g++.other/using4.C: New test. Test using
- declarations of methods from base classes.
-
- * g++.old-deja/g++.ns/extern1.C: New test. Extern declarations
- within functions should introduce names into the innermost
- enclosing namespace.
-
- * g++.old-deja/g++.other/init7.C: New test. Retry initialization
- of static locals if first initialization throws.
-
-Wed Oct 7 12:00:20 1998 Jim Wilson <wilson@cygnus.com>
-
- * gcc.c-torture/compile/981007-1.c: New test for irix6 -O0 core dump.
-
-1998-10-06 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.pt/friend35.C: New test. A template function
- must be declared before its specializations can be named in friend
- declarations.
-
-1998-10-05 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/execute/u77-test.f: Add regression test for RAND.
-
- * g77.f-torture/execute/io1.f: New test.
-
-1998-10-04 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.pt/overload5.C: New test; initialize variable
- with pointer to template function, for which no argument deduction
- is possible.
-
- * g++.old-deja/g++.pt/overload4.C: New test; passing pointer to
- specialization of template function as argument to template
- function.
-
- * g++.old-deja/g++.other/access2.C: New test; Inner class
- shouldn't have privileged access to Outer's names.
-
-1998-10-03 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.pt/friend34.C: New test; name injection of
- friend template declared within template class conflicts with
- nested class of the same name.
-
- * g++.old-deja/g++.other/badopt1.C: New test; post-increment
- is ignored.
-
- * g++.old-deja/g++.other/decl1.C: New test; incorrect parsing of
- object with direct initializer as function declaration.
-
- * g++.old-deja/g++.other/decl2.C: New test; duplicate
- initializers.
-
- * g++.old-deja/g++.other/null2.C: New test; conditional operator
- involving const pointer and NULL produces incorrect result.
-
- * g++.old-deja/g++.other/typename1.C: New test; template-dependent
- type name without `typename' should be rejected with -pedantic.
-
-Fri Oct 2 21:55:58 1998 Richard Henderson <rth@cygnus.com>
-
- * g++.old-deja/g++.other/addrof1.C: New test.
-
-Thu Oct 1 19:05:20 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/compile/981001-2.c: New test.
- * gcc.c-torture/compile/981001-3.c: New test.
- * gcc.c-torture/compile/981001-4.c: New test.
-
-1998-10-01 Robert Lipe <robertl@dgii.com>
-
- * lib/objc.exp (objc_target_compile): Add -L during compiles for
- multilibbed hosts. Idea grafted from g77.exp.
-
-1998-09-30 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/execute/u77-test.f (main): Excise `hostnm' to
- avoid losing on systems which need -lsocket.
-
-1998-09-28 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.other/bitfld1.C: Expected failure.
- * g++.old-deja/g++.other/nested2.C: Ditto.
- * g++.old-deja/g++.robertl/eb132.C: No longer an expected
- failure.
-
-1998-09-26 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.other/bitfld1.C: Built-in operator!= should be
- preferred over template operator!= for enum bitfields.
-
-1998-09-18 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.other/nested2.C: Different virtual base classes
- that happen to have the same base name, but in different scopes,
- are incorrectly rejected.
-
-1998-09-16 Richard Henderson <rth@cygnus.com>
-
- * g++.old-deja/g++.brendan/array1.C: Size array via arithmetic based
- on the native word size instead of an integer literal.
-
-1998-09-15 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.other/static2.C: Invocation of static data
- member of type pointer-to-function denoted as non-static member.
-
- * g++.old-deja/g++.other/typedef5.C: Add some more tests involving
- checks involving function types and aliases.
-
-1998-09-12 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.other/typedef5.C: Check whether typedefs can be
- redefined to the same non-trivial type.
-
- * g++.old-deja/g++.pt/explicit73.C: Test for proper
- namespace-qualification of template specializations declared in
- other namespaces.
-
- * g++.old-deja/g++.other/friend4.C: Check whether it is possible
- to declare a subset of the specializations of a template function
- as friends of specializations of a template class.
-
- * g++.old-deja/g++.pt/explicit71.C: Make sure specializations of
- member templates that do not fully specialize the enclosing
- template class are rejected.
-
-1998-09-11 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/execute/u77-test.f: Fix bad consistency checks.
-
-1998-09-08 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/execute/u77-test.f (main): New file, somewhat
- altered from libf2c/libU77 version.
-
-1998-09-06 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/execute/io0.f: Test formatted direct i/o too.
-
-1998-09-04 Reid M. Pinchback <reidmp@MIT.EDU>, Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.pt/explicit72.C: Ensure that char and
- (un)signed char are different types for template specialization
- purposes.
-
-Thu Sep 3 00:40:32 1998 Ovidiu Predescu <ovidiu@aracnet.com>
-
- * lib/{objc.exp,objc-torture.exp}: New files for objc testing harness.
- * objc: ObjC testsuite.
-
-Mon Aug 31 15:19:32 1998 Nick Clifton <nickc@cygnus.com>
-
- * lib/c-torture.exp: Add support for
- torture_eval_before_compile and torture_eval_before_execute
- variables.
-
-Sun Aug 30 17:38:20 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.dg/980626-1.c: Delete this test. We've declared the warning
- this test triggers valid.
-
-Thu Aug 27 23:59:18 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.dg/980827-1.c: New test.
-
-Wed Aug 26 16:25:38 1998 Nick Clifton <nickc@cygnus.com>
-
- * lib/c-torture.exp: Add support for
- torture_eval_before_compile and torture_eval_before_execute
- variables.
-
-Tue Aug 25 19:42:13 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/compile/980825-1.c: New test.
-
-Mon Aug 24 16:38:52 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/compile/930326-1.x: Fix typo.
-
-1998-08-23 Mark Mitchell <mark@markmitchell.com>
-
- * lib/old-dejagnu.exp: Make it possible to XFAIL a test that
- causes an ICE.
-
-Fri Aug 21 23:59:18 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/unsorted/memtst.c: Reduce size of array when
- STACK_SIZE is defined.
- * gcc.c-torture/unsorted/stuct.c: Similarly.
-
- * gcc.c-torture/compile/980821-1.c: New test.
-
-Fri Aug 21 03:14:04 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/980526-2.c: Disable for targets with 16bit ints.
-
-1998-08-19 Mark Mitchell <mark@markmitchell.com>
-
- * lib/old-dejagnu.exp (old-dejagnu): Remove sig6/sig11 handling
- code.
-
-1998-08-09 Mark Mitchell <mark@markmitchell.com>
-
- * lib/old-dejagnu.exp: Revise handling of `Internal compiler
- error'.
-
-Tue Aug 18 19:19:50 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/*.x: Some updates for the h8300 targets.
-
-Sun Aug 16 01:29:19 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/compile/980816-1.c: New test.
-
- * gcc.dg/980816-1.c: New test.
-
-1998-08-01 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/compile/980729-0.f: New test.
-
-1998-07-30 Ken Raeburn <raeburn@cygnus.com>
-
- * gcc.c-torture/special/eeprof-1.c: New test, for
- -finstrument-functions.
- * gcc.c-torture/special/special.exp: Run it.
-
-Wed Jul 29 00:17:18 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/compile/980729-1.c: New test.
-
-1998-07-26 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/noncompile/980615-0.f: New test.
-
-Sun Jul 26 01:15:56 1998 H.J. Lu (hjl@gnu.org)
-
- * gcc.dg/980312-1.c: Do link instead of compile.
- * gcc.dg/980313-1.c: Likewise.
-
-Sun Jul 26 01:05:02 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/compile/980726-1.c: New test.
-
-1998-07-25 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/execute/io0.f: New test.
-
-Fri Jul 17 14:19:32 1998 Nick Clifton <nickc@cygnus.com>
-
- * gcc.dg/980626-1.c: Expect failures for all toolchains until
- c-decl.c:grokdeclarator can handle mode attributes.
-
-Thu Jul 16 21:42:50 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/980716-1.c: New test.
-
-Mon Jul 13 22:26:37 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/920715-1.x: No longer expected to fail on
- the mn10200.
- * gcc.c-torture/execute/strct-varg-1.x: New file. Expect failure on
- the mn10200.
- * gcc.c-torture/execute/va-arg-3.x: Similarly.
- * gcc.c-torture/compile/930326-1.x: Similarly.
-
-1998-07-13 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/execute/auto0.f, g77.f-torture/execute/auto1.f:
- New test from Craig.
-
-1998-07-12 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/noncompile/980616-0.f: New test.
-
- * g77.f-torture/execute/970816-3.f: New test from Craig.
-
-Fri Jul 10 23:43:33 1998 Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de>
-
- * g++.other/singleton.C: Return error value instead of taking
- SIGSEGV.
-
-Fri Jul 10 10:02:03 1998 Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
-
- * g++.other/singleton.C: New test. Warning is under dispute.
- Runtime crash is not.
-
-Thu Jul 9 23:07:45 1998 Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de>
-
- * g++.ns/{alias2.C, alias5.C, koenig4.C, lookup3.C ns13.C,
- ns14.C, ns15.C, template3.C, undef1.C, using4.C, using5.C,
- using6.C, using7.C}: New namespace tests.
-
-Thu Jul 9 22:44:49 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.other/partspec1.C: Test matching of partial
- specialization with typedef'ed names used as array indexes.
-
-Thu Jul 9 00:38:51 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/980709-1.c: New test.
-
- * gcc.dg/980709-1.c: New test.
-
-Tue Jul 7 13:41:27 1998 Richard Henderson <rth@cygnus.com>
-
- * gcc.c-torture/execute/bcp-1.c: New test.
-
-Tue Jul 7 11:49:04 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/980707-1.c: New test.
-
-Mon Jul 6 18:20:27 1998 Kamil Iskra <iskra@student.uci.agh.edu.pl>
-
- * gcc.c-torture/compile/980706-1.c: New test.
-
-1998-07-01 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/execute/980701-0.f,
- g77.f-torture/execute/980701-1.f: New test from Craig.
-
-Wed Jul 1 00:52:51 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/compile/980701-1.c: New test.
-
- * gcc.c-torture/execute/980701-1.c: New test.
-
-Tue Jun 30 11:51:42 1998 Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-ka
-rlsruhe.de>
-
- * g++.old-deja/g++.robertl/eb132.C: New test.
- * g++.old-deja/g++.robertl/eb133.C: Likewise.
-
-1998-06-29 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/execute/980628-7.f,
- g77.f-torture/execute/980628-8.f,
- g77.f-torture/execute/980628-9.f,
- g77.f-torture/execute/980628-10.f: New tests from Craig.
-
- * g77.f-torture/execute/980628-3.f: Remove mail headers.
-
-Sun Jun 28 12:49:02 1998 Jeffrey A Law (law@cygnus.com)
-
- * g77.f-torture/execute/980628-4.f: New test from Craig.
- * g77.f-torture/execute/980628-5.f: Likewise.
- * g77.f-torture/execute/980628-2.f: Likewise.
- * g77.f-torture/execute/980628-0.f: Likewise.
- * g77.f-torture/execute/980628-1.f: Likewise.
- * g77.f-torture/execute/980628-3.f: Likewise.
- * g77.f-torture/execute/980628-6.f: Likewise.
-
-Sun Jun 28 00:37:26 1998 Jeffrey A Law (law@cygnus.com)
-
- * lib/g77.exp (default_g77_version): Tweak to make it work in a build
- directory when nothing has been installed yet.
-
-Sat Jun 27 23:23:18 1998 Carlo Wood <carlo@runaway.xs4all.nl>
-
- * gcc.c-torture/special/special.exp: Handle newer versions of
- dejagnu.
-
-Fri Jun 26 17:57:40 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.dg/980626-1.c: New test.
-
-Fri Jun 19 23:26:12 1998 Bruno Haible <haible@ilog.fr>
-
- * gcc.misc-tests/m-un-2.c: New test.
- * g++.old-deja/g++.other/warn01.c: Likewise.
-
-Fri Jun 19 14:06:36 1998 Robert Lipe <robertl@dgii.com>
-
- * gcc.dg/980414-1.c: Move comments outside of ASM to improve
- compatibility with assmblers with a different comment character.
- Eliminate use of GAS-specific extensions.
-
-Fri Jun 19 02:05:14 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/ieee/980619-1.c: New test.
-
-Fri Jun 19 00:58:11 1998 Robert Lipe <robertl@dgii.com>
-
- *lib/g77.exp: Replace search for libf2c.a with search for newly
- renamed libg2c.a
-
-Wed Jun 17 18:53:12 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/980617-1.c: New test.
-
-Fri Jun 12 01:08:49 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/980612-1.c: New test.
-
-Mon Jun 8 02:13:42 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.dg/980523-1.c: Only test on ppc-linux.
- * gcc.dg/980526-1.c, gcc.dg/switch-1.c: Likewise.
-
- * gcc.c-torture/execute/980608-1.c: New test.
-
-Thu Jun 4 01:39:24 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/980604-1.c: New test.
-
-Tue Jun 2 20:51:43 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/980602-1.c: New test.
- * gcc.c-torture/execute/980602-2.c: Likewise.
-
-1998-06-02 Dave Love <d.love@dl.ac.uk>
-
- * 970125-0.f: Fix per JCB. Add commentary.
-
-Fri May 29 01:10:12 1998 Peter Leven <leven@lpr.e-technik.tu-muenchen.de>
-
- * gcc.c-torture/execute/ieee/fp-cmp-1.c: Set up signal handler
- earlier.
-
-Thu May 28 00:17:42 1998 Catherine Moore <clm@cygnus.com>
-
- * gcc.c-torture/execute/980526-3.c: New test.
-
-1998-05-27 Manfred Hollstein <manfred@s-direktnet.de>
-
- * g++.old-deja/g++.jason/thunk2.C: Setup this test to be expected to
- fail on m68k-motorola-sysv and m88k-motorola-sysv3.
- * g++.old-deja/g++.jason/thunk3.C: Add m68k-motorola-sysv and
- m88k-motorola-sysv3 to XFAIL.
-
-Tue May 26 23:58:03 1998 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
-
- * gcc.dg/980526-1.c: New test.
- * gcc.c-torture/execute/980526-2.c: New test.
-
-Tue May 26 23:40:40 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.dg/980523-1.c: Change "ppc" to "powerpc".
-
- * gcc.c-torture/execute/980526-1.c: New test.
-
-1998-05-26 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/execute/alpha2.f: Add runtime test.
-
-1998-05-24 Jason Merrill <jason@yorick.cygnus.com>
-
- * g++.old-deja/old-deja.exp: Strip leading directories.
-
- * lib/old-dejagnu.exp: All tests fail if we got an internal compiler
- error for the line. Don't run multiple tests for the same line.
-
-Sat May 23 23:27:10 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.dg/980523-1.c: New test.
-
-1998-05-23 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/compile/970915-0.f: New test.
-
-1998-05-23 Jason Merrill <jason@yorick.cygnus.com>
-
- * lib/old-dejagnu.exp: Ignore C++ "instantiated from" mesages.
-
-Thu May 21 23:23:21 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.dg/980520-1.c: New test.
-
-Wed May 20 14:37:15 1998 Manfred Hollstein <manfred@s-direktnet.de>
-
- * gcc.dg/980502-1.c: Fix return type.
-
-Wed May 20 11:29:48 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.dg/{980502-1.c, clobbers.c}: New tests.
- * gcc.c-torture/compile/{980504-1.c, 980506-1.c}: Likewise.
- * gcc.c-torture/compile/{980506-2.c, 980611-1.c}: Likewise.
- * gcc.c-torture/execute/{980505-1.c, 980505-2.c, 980506-1.c}: Likewise.
- * gcc.c-torture/execute/{980506-2.c, 980506-3.c}: Likewise.
-
-1998-05-20 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/execute/980520-1.f: New test.
-
-1998-05-15 Dave Love <d.love@dl.ac.uk>
-
- * lib/mike-g77.exp: New file.
-
- * g77.f-torture/noncompile/noncompile.exp,
- g77.f-torture/noncompile/check0.f: New files.
-
-1998-05-14 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/execute/short.f, g77.f-torture/execute/le.f,
- g77.f-torture/execute/exp.f, g77.f-torture/execute/erfc.f,
- g77.f-torture/execute/dnrm2.f, g77.f-torture/execute/dcomplex.f,
- g77.f-torture/execute/cpp.F, g77.f-torture/execute/complex_1.f,
- g77.f-torture/execute/claus.f, g77.f-torture/execute/cabs.f: Call
- abort where appropriate.
-
-Tue May 5 19:20:13 1998 Michael Meissner <meissner@cygnus.com>
-
- * lib/c-torture.exp (TORTURE_OPTIONS): Add -Os to options.
- * lib/f-torture.exp (TORTURE_OPTIONS): Ditto.
-
-1998-04-29 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/compile/980419-1.f: Removed since doesn't compile.
-
-1998-04-27 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/compile/980427-0.f: New test.
-
-1998-04-24 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/compile/980424-0.f: New test.
-
-1998-04-19 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/compile/980419-2.f (main): New test.
- * g77.f-torture/compile/970125-0.f: New test.
- * g77.f-torture/compile/980419-1.f: New test.
-
-Wed Mar 18 16:22:22 1998 Jim Wilson <wilson@cygnus.com>
-
- * gcc.dg/980313-1.c: New test for fp conditional move on PPro.
- * gcc.dg/980312-1.c: Fix typo in -march command.
-
-Mon Mar 16 20:01:30 1998 H.J. Lu (hjl@gnu.org)
-
- * gcc.dg/980312-1.c: New test for fp conditional move on PPro.
-
-Wed Mar 11 13:08:48 1998 Robert Lipe <robertl@dgii.com>
-
- * g77.f-torture/execute/980310-5.f: Deleted. Craig Burley and
- Dave Love agree the Fortran source is bogus.
-
-Wed Mar 11 00:03:49 1998 Robert Lipe <robertl@dgii.com>
-
- * g77.f-torture/compile/980310-1.f, g77.f-torture/compile/980310-2.f
- g77.f-torture/compile/980310-3.f, g77.f-torture/compile/980310-4.f
- g77.f-torture/compile/980310-6.f, g77.f-torture/compile/980310-7.f
- g77.f-torture/compile/980310-8.f: New tests from egcs-bugs archives.
- * g77.f-torture/execute/980310-5.f: New test from egcs-bugs archives.
-
-Tue Mar 10 00:31:51 1998 Alexandre Oliva <oliva@dcc.unicamp.br>
-
- * g++.old-deja/g++.other/friend1.C: New test.
-
-1998-02-18 Dave Love <d.love@dl.ac.uk>
-
- * g77.f-torture/execute/dnrm2.f (dnrm2): Avoid uninitialized (and
- possibly uninitialized) variables and declare dnrm2.
-
-Fri Feb 13 00:36:07 1998 Jeffrey A Law (law@cygnus.com)
-
- * gcc.dg/ifelse-1.c: New test.
-
-Mon Feb 9 02:08:47 1998 H.J. Lu (hjl@gnu.org)
-
- * lib/g77.exp (g77_target_compile): Fix multilibs for libf2c.
-
- * lib/old-dejagnu.exp (old-dejagnu): Added the
- "execution test - XFAIL *-*-*" handling in the spirit of
- "excess errors test -". Changed the "execution test fails"
- handling to be like "excess errors test fails".
- * Update various tests accordingly.
-
-Sun Jan 18 01:33:59 1998 Jeffrey A Law (law@cygnus.com)
-
- * lib/c-torture.exp: Look for .x files instead of .cexp files.
- * lib/f-torture.exp: Similarly.
- * gcc.c-torture: Rename all .cexp files to .x files.
-
-Tue Nov 25 16:18:51 1997 Kate Hedstrom (kate@ahab.rutgers.edu)
-
- * lib/f-torture.exp: Improve error and loop detection.
-
-Fri Sep 26 10:50:53 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/c-torture.exp(c-torture-execute): Fix typo.
-
- * lib/old-dejagnu.exp(old-dejagnu): Use a name derived from the
- testcase as the executable name. Keep the executable around if
- the test fails.
-
-Fri Sep 19 17:19:53 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/c-torture.exp (TORTURE_OPTIONS): Removed unnecessary
- changes. Only test one -g option, and move it to the end of the
- list of options to test.
-
-Fri Sep 19 17:58:00 1997 Michael Meissner <meissner@cygnus.com>
-
- * lib/c-torture.exp (TORTURE_OPTIONS): Check for the environment
- variable GCC_TORTURE_OPTIONS to supply default switches separated
- by colons. If no environment variable, run tests with -O0 -g, -O1
- -g, and -O2 -g as well.
-
-Wed Sep 17 10:12:26 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/plumhall.exp: Don't set PHSRC in this file. Add a few
- explanatory comments. Fix indentation.
-
-Mon Sep 15 00:36:53 1997 Jeffrey A Law (law@cygnus.com)
-
- * lib/g++.exp (g++_init): Look for xgcc in $basedir too.
-
-Thu Sep 11 13:54:47 1997 Jeffrey A Law (law@cygnus.com)
-
- * g++.old-deja/g++.brendan/scope4.C: No longer expected to fail.
- * g++.old-deja/g++.mike/p7325.C: Likewise.
- * g++.old-deja/g++.mike/eh51.C: No longer expected to fail on the PA.
-
-Thu Sep 11 10:00:03 1997 Alexandre Oliva (oliva@dcc.unicamp.br)
-
- * g++.old-deja/g++.brendan/crash20.C: Rework to avoid libg++.
- * g++.old-deja/g++.brendan/crash30.C: Likewise.
- * g++.old-deja/g++.brendan/crash39.C: Likewise.
- * g++.old-deja/g++.law/operators4.C: Likewise.
-
-Thu Sep 11 09:53:40 1997 Joe Buck (jbuck@synopsys.com)
-
- * g++.old-deja/g++.mike/p658.C: eliminate <bool.h> use.
- * g++.old-deja/g++.mike/p784.C: Ditto.
- * g++.old-deja/g++.mike/p785.C: Ditto.
-
-Fri Sep 5 00:21:42 1997 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/cbrt.c: Tweak to work on more targets.
-
-Wed Sep 3 17:15:00 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/c-torture.exp(c-torture-execute): If the previous and the
- current executables being tested are identical, we don't need to
- run the executable again. Try to make the executable names
- unique. Add an optional argument for passing additional compiler
- flags.
-
-Tue Sep 2 16:34:31 1997 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/gcc-dg.exp (gcc-dg-test): Fix typos setting compile_type.
-
-Thu Jul 31 12:17:24 1997 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/920501-9.c: Fix to work on targets with
- 32bit or larger longs.
-
- * gcc.c-torture/execute/961017-2.c: Fix to work on targets which
- have either a 32bit long or 32bit int.
-
-Wed Jul 9 15:15:40 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * gcc.prms/5403.c: Allow CRLFs to occur at the start of the output
- too.
-
-Mon Jun 16 15:27:06 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/g++.exp(g++_init): Use g++_include_flags instead of making
- up the includes ourselves.
-
-Wed Jun 11 17:33:21 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/plumhall.exp: Remove random include, and add a few
- verbose messages for debugging.
-
-Fri Jun 6 14:23:24 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/g++.exp: Use g++_link_flags from libgloss.exp, instead
- of trying to do it ourselves.
-
-Wed Jun 4 18:43:55 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * gcc.prms/5403.c: Made regexp a bit less strict.
-
-Tue Jun 3 15:12:39 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/mike-gcc.exp: Don't use global exec_output anymore. Output
- is returned from remote_load instead.
- * lib/plumhall.exp: Ditto.
- * lib/mike-g++.exp: Ditto.
- * lib/old-dejagnu.exp: Ditto.
- * lib/c-torture.exp: Ditto.
-
-Fri May 30 23:15:15 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/g++.exp: Use build_wrapper procedure.
- * lib/gcc.exp: Ditto.
-
-Tue May 20 15:23:27 1997 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/*.c: Include stdlib.h instead of using
- an old-style decl for malloc. Fixes tests to work when
- sizeof (int) != sizeof (size_t).
-
-Thu May 15 14:10:39 1997 Mike Meissner <meissner@cygnus.com>
-
- * lib/gcc.exp (gcc_target_compile): If gcc,no_varargs, define
- NO_VARARGS when compiling.
-
-Thu May 1 14:49:19 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/plumhall.exp(ph_includes): New procedure.
- (ph_make): Use it.
- (ph_compiler): Ditto.
-
- * lib/g++.exp: Rename test-glue.c to testglue.c.
- * lib/gcc.exp: Ditto.
-
-Thu Apr 10 14:50:26 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/g++.exp(g++init): Don't try to be smart, always run g++_init
- to completion when it's called.
-
-Thu Mar 20 09:50:32 1997 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/plumhall.exp (ph_make): Comment out errorCode=NONE test
- for object files.
- (ph_summary): Mark skipped testcases as untested, not unresolved.
-
- * lib/plumhall.exp (ph_make): If unresolved because of bad
- errorCode, record errorCode in log file.
- (*): Replace send_log/verbose with verbose -log.
-
-Thu Mar 13 16:09:28 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/plumhall.exp: Use incr_count.
-
-Wed Mar 12 10:01:33 1997 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture: Update to c-torture-1.45.
-
-Sun Feb 23 18:12:04 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/gcc.exp(gcc_init): Add args parameter (which will contain
- the name of the expect testcase file).
-
- * lib/g++.exp(g++_init): Ditto.
-
-Thu Feb 20 13:53:05 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/g++.exp(g++_exit): $gluefile lives on the build, not
- the host.
-
- * lib/gcc.exp(gcc_exit): New procedure.
-
-Wed Feb 19 15:16:16 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * g++.old-deja/g++.rfg/*: Added "Build don't link" and ERROR
- specs where appropriate.
-
- * g++.old-deja/g++.arm/*: Added additional ERROR checks
- because of new "candidates are" messages, and removed a few
-
- * Converted all non-old-style g++ testcases to old-style, and
- moved into g++.old-deja.
-
-Fri Feb 14 11:46:46 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/old-dejagnu.exp(old-dejagnu): Add various "skip if"
- options.
-
- * lib/gcc.exp(gcc_init): Don't set gluefile unless the compile
- succeeded.
-
- * lib/g++.exp(g++_init): Don't unset gluefile unless it exists.
-
-Thu Feb 13 17:30:46 1997 Michael Meissner <meissner@cygnus.com>
-
- * lib/gcc.exp (gcc_target_compile): Add support for defining
- NO_TRAMPOLINES and NO_LABEL_VALUES if the baseboard file indicates
- the machine doesn't have those features.
-
-Tue Feb 11 12:57:11 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * g++.law/operators4.exp: Don't use LIBS.
-
-Sat Feb 8 14:45:55 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * g++.law/virtual1.exp: Don't use CXX_FLAGS.
-
- * lib/mike-g++.exp: Don't set the compiler to be tested here.
- * lib/g++.exp: Set it here instead. Also, allow use of the
- --tool_exec and --tool_opt options. Change CXX to
- GXX_UNDER_TEST.
-
- * g++.old-deja/old-deja.exp: Change CXX to GXX_UNDER_TEST.
-
- * lib/gcc.exp: Allow use of --tool_exec and --tool_opt.
-
-Fri Feb 7 12:55:45 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/old-dejagnu.exp: Use prune_warnings instead of
- prune_system_crud.
- * lib/mike-g++.exp: Ditto.
- * lib/gcc.exp: Ditto.
- * lib/g++.exp: Ditto.
-
- * lib/g++.exp: Include both libstdc++ and libstdc++/stl.
-
-Fri Feb 7 10:41:53 1997 Jeffrey A Law (law@cygnus.com)
-
- * 941014-2.c: Include stdlib.h
- * 960327-1.c: Include stdio.h
- * dbra.c, index-1.c: Don't assume ints are 32bits.
-
-Tue Feb 4 12:51:09 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/gcc.exp: Add gcc,stack_size target feature.
-
- * lib/g++.exp(g++_target_compile): Add the include and link
- paths here, not in two other places. And, it's $options, not
- options.
-
- * lib/mike-g++.exp(postbase): Remove the code that determines
- the correct include and link paths.
- * g++.old-deja/old-deja.exp: Ditto.
-
-Mon Feb 3 19:00:07 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/g++.exp(g++_init): target_compile no longer returns the
- filename of the result.
-
-Sun Feb 2 14:42:34 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * gcc.misc-tests/gcov.exp: Add -nocomplain to the
- call to glob.
-
- * gcc.c-torture/special/special.exp: Change call to
- gcc_target_compile to include the object file.
-
-Sun Feb 2 17:11:50 1997 Ian Lance Taylor <ian@cygnus.com>
-
- * gcc.c-torture/special/special.exp: Correct misspelling in last
- change.
-
-Sat Feb 1 12:34:23 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/plumhall.exp(ph_summary): Log the entire output of the
- executable. Return -1 if there were any failures, 0 otherwise.
- (ph_execute): Return -1 if there were any failures, 0 otherwise.
- (ph_make): Clean up objects and executables that were built
- if the tests succeeded.
-
-Thu Jan 30 13:45:56 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * g++.old-deja/old-deja.exp: Add -L and -I flags so we include
- libraries and includes in the build tree as appropriate.
-
-Wed Jan 29 17:19:34 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/c-torture.exp: Instead of looking for the global variable
- NO_LONG_LONG, check to see if that's a feature of the target.
-
-Wed Jan 29 00:36:25 1997 Bob Manson <manson@charmed.cygnus.com>
-
- * config/default.exp: Minimize. Delete the remainer of the files in
- config; this functionality is now in devo/dejagnu/config.
-
- g++.*/*: Pass any additional flags used to compile to postbase;
- delete CXXFLAGS.
-
- gcc.c-torture/*: Remove calls to gcc_init and gcc_finish; this
- is now done by runtest.exp. Use gcc_target_compile instead of
- compile.
-
- lib/c-torture.exp: Use gcc_target_compile instead of compile.
- Remove references to CFLAGS. Use remote_file instead of
- calling rm -f.
- (c-torture): Take a list of arguments to use to compile this
- testcase.
-
- lib/g++.exp: Simplify. Use target_compile instead of compile.
- lib/gcc-dg.exp: Ditto.
- lib/gcc.exp: Ditto.
- lib/mike-{gcc,g++}.exp: Ditto.
- lib/old-dejagnu.exp: Ditto.
- lib/plumhall.exp: Ditto.
-
-Wed Jan 8 14:43:07 1997 Jim Wilson <wilson@cygnus.com>
-
- * lib/plumhall.exp (ph_make): Use CFLAGS and ANSICFLAGS when linking.
- (ph_linker): Likewise.
-
-Wed Nov 13 16:04:19 1996 Joern Rennecke <amylaar@cygnus.com>
-
- * gcc.c-torture/execute/{loop-2e.c,loop-2f.c}: Only use
- MAP_ANON / MAP_ANONYMOUS if defined;
- else try to map from /dev/zero .
-
-Tue Nov 12 23:30:12 1996 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/{loop-2e.c,loop-2f.c}: If MAP_ANON
- isn't defined, then define it to MAP_ANONYMOUS.
-
-Tue Nov 12 11:57:49 1996 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture: Update to c-torture-1.42 release.
-
-Mon Nov 11 12:45:31 1996 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture: Update to c-torture-1.41 release.
-
-Sun Oct 27 18:56:18 1996 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/enum-1.c: New test. Will be in next
- c-torture release.
-
-Thu Aug 15 11:09:36 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * lib/gcc.exp (gcc_init): Always append the target_info to CFLAGS
- and LDFLAGS. Fix second case to append the target_info ldflags
- onto LDFLAGS, not CFLAGS.
- * lib/g++.exp (g++_init): Add target_info stuff.
- * lib/old-dejagnu.exp (old-dejagnu-init): Likewise. Add inclusion
- of libgloss and newlib flags for !native.
-
- * config/proelf.exp: Load remote.exp and do `push_target hppro'.
- (GDB): Fix relative path to go up another dir for finding gdb.
-
-Thu Aug 8 17:03:27 1996 Rob Savoye <rob@chinadoll.cygnus.com>
-
- * lib/gcc.exp(gcc_init): Set CFLAGS and LDFLAGS to their new
- versions in the target_info array, if they don't exist.
-
-Fri Aug 2 15:39:03 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * config/vx.exp (${tool}_load): Fix syntax of `$shell_id < 0'.
-
-Mon Jul 8 15:45:58 1996 Jim Wilson <wilson@cygnus.com>
-
- * lib/g++.exp: Change all uses of $base_dir/ to $base_dir/../.
- * lib/gcc.exp, lib/old-dejagnu.exp: Likewise.
-
-Mon Jul 1 15:53:00 1996 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/old-dejagnu.exp: Don't remove the output file before we've
- actually tested it. Don't append pwd to the path of the executable
- we're testing.
-
-Sun Jun 30 14:37:50 1996 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/g++.exp (default_g++_start): Don't pass LDFLAGS, LIBS if -c.
-
-Wed Jun 26 14:15:55 1996 Bob Manson <manson@charmed.cygnus.com>
-
- * lib/old-dejagnu.exp (old-dejagnu): Add $tmpdir to specify a
- temporary directory for compiler files, and set it to a default
- value of /tmp. Set $output as the name of the output file from
- compiling the testcase. Add a -o option to $cflags_var so the
- compiler writes the final output file as $output. Set $executable
- to $output.
-
- * lib/mike-g++.exp (postbase): Add $tmpdir to specify a temporary
- directory for compiler files, and set it to /tmp if it doesn't
- already have a value. Set $output_file to the name of the output
- file from compiling the testcase. Add a -o option to CXXFLAGS so
- the compiler writes the final output file as $output. Use $output
- as the executable to be tested.
-
-Mon Jun 24 17:12:16 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * lib/g++.exp: Also add -Wl,-rpath,... for linux.
-
-Sat Jun 8 15:12:24 1996 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture/execute/pending-1.c: New test. Still
- pending in Tege's queue.
-
-Wed Apr 24 18:13:45 1996 Jim Wilson <wilson@chestnut.cygnus.com>
-
- * lib/plumhall.exp (ph_summary): Add arguments name and exec_status.
- Add variables local_failcnt and local_unresolvedcnt. Call gcc_fail
- if there were failures. Call unresolved if there were unresolved
- testcases. Call gcc_fail if program did not run to completion.
- (ph_make): Pass additional argument name to ph_execute.
- (ph_execute): Add new argument. Pass additional arguments to
- ph_summary. Call gcc_fail is there is no execution output.
-
-Wed Apr 24 13:39:23 1996 Jeffrey A Law (law@cygnus.com)
-
- * lib/plumhall.exp (proc_summary): Output relavent summary
- lines into the log so specific failures in plumhall can be
- investigated.
-
-Wed Apr 10 13:23:45 1996 Jeffrey A Law (law@cygnus.com)
-
- * lib/c-torture.exp: Provide a default value for $NO_LONG_LONG.
- (c-torture-execute): Don't try to execute tests which use
- "long long" types if $NO_LONG_LONG is nonzero.
-
-Mon Apr 8 08:52:29 1996 Doug Evans <dje@canuck.cygnus.com>
-
- * gcc.c-torture/execute/ieee/ieee.exp: Run c-torture-execute,
- not c-torture.
-
- * gcc.ieee: Move from here.
- * gcc.c-torture/execute/ieee: To here.
-
-Tue Mar 26 23:41:18 1996 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture: Update to c-torture-1.41 release.
-
-Fri Mar 22 15:49:24 1996 Jeffrey A Law (law@cygnus.com)
-
- * lib/c-torture.exp (c-torture-execute): Remove "$executable",
- not "$output".
-
-Thu Mar 7 12:37:08 1996 Doug Evans <dje@charmed.cygnus.com>
-
- * lib/gcc.exp (default_gcc_start): Don't pass $LDFLAGS $LIBS if
- -c present.
-
-Sat Mar 2 22:36:37 1996 Jeffrey A Law (law@cygnus.com)
-
- * config/proelf.exp: Handle connecting to a simulator.
-
-Wed Jan 31 00:58:15 1996 Jeffrey A Law (law@cygnus.com)
-
- * config/proelf.exp: New file. Enough framework that we can
- run c-torture tests on the proelf targets (or any other target
- that gdb can connect to for that matter).
-
-Mon Jan 29 08:57:46 1996 Doug Evans <dje@canuck.cygnus.com>
-
- * gcc.c-torture/special/special.exp: Delete libs arg to dg-runtest.
- * gcc.ph/testing/limits/limits.exp: Likewise. Don't pass $CFLAGS.
-
- * lib/plumhall.exp (ph_execute): Always call ph_summary if
- exec_output exists.
-
-Sun Jan 28 11:28:43 1996 Doug Evans <dje@charmed.cygnus.com>
-
- * config/sim.exp (SIM_TIME_LIMIT): New user settable variable.
- (${tool}_load): Use 240 seconds if SIM_TIME_LIMIT not set.
-
- * config/*.exp: Update FSF address. Change result of ${tool}_load
- to pass/fail/unresolved/unsupported/untested. Caller must now
- call unresolved/unsupported/untested.
- * lib/*.exp: Update FSF address. Update to handle new results of
- ${tool}_load.
- * lib/chill.exp (verbose): Delete.
-
-Sat Jan 27 12:28:07 1996 Doug Evans <dje@charmed.cygnus.com>
-
- * lib/gcc.exp (default_gcc_start): Change order of args to
- $LDFLAGS $CFLAGS $LIBS.
- * lib/gcc-dg.exp (gcc-dg-test): Arguments have changed, update.
- Save/set/restore CFLAGS. Pass single arg to gcc_start.
- * gcc.dg/dg.exp: Delete libs arg in call to dg-runtest.
- (CC,CFLAGS,LIBS): Delete references. Don't pass $CFLAGS to dg-runtest.
- * gcc.misc-tests/dg-test.exp: Likewise.
- * gcc.misc-tests/msgs.exp: Likewise.
- * gcc.prms/prms.exp: Likewise.
- * gcc.misc-tests/gcov.exp: Delete libs arg in call to dg-runtest.
- (CFLAGS,LIBS): Delete references. Don't pass $CFLAGS to dg-runtest.
-
- * lib/dg.exp: Deleted, moved to dejagnu/lib.
-
-Wed Jan 24 18:37:00 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * g++.old-deja/old-deja.exp: Add passing of $mathlib to old-dejagnu.
-
- * g++.old-deja/old-deja.exp: Move setting of runshlib from here...
- * lib/old-dejagnu.exp (old-dejagnu-init): ...to here.
-
- * lib/g++.exp (g++_init): Take out use of -rpath for the sun4, not
- necessary.
-
-Sat Jan 20 17:22:08 1996 Brendan Kehoe <brendan@cygnus.com>
-
- * g++.old-deja/old-deja.exp: Move setting of runshlib out of the
- global for loop; add use of $mathlib.
- * lib/old-dejagnu.exp (old-dejagnu-init): Put the runshlib
- settings here; set mathlib for anything but VxWorks.
-
-Mon Jan 22 16:31:57 1996 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture: Update to c-torture-1.40 release.
-
-Wed Jan 3 00:54:33 1996 Jeffrey A Law (law@cygnus.com)
-
- * gcc.ph/testing/limits/limits.exp: Load ${tool}-dg.exp, not
- dg.exp.
-
-Sun Dec 3 16:17:42 1995 Jeffrey A. Law <law@sethra.cygnus.com>
-
- * lib/c-torture.exp (c-torture-execute): Declare "output" as
- global.
-
-Fri Nov 17 20:01:19 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/g++.exp (LIBS): Define if not already.
- * lib/gcc-dg.exp (gcc-dg-test): Set executable file as a.out.
- (gcc-dg-prune): Call prune_gcc_output.
- * lib/gcc.exp (prune_gcc_output): New proc.
- * gcc.c-torture/special (921210-1.c): Call prune_system_crud and
- prune_gcc_output.
-
-Thu Nov 16 09:15:40 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/c-torture.exp (c-torture-compile): Fix calls to `unsupported'.
- (c-torture-execute): Likewise. Rename `name' to `testcase'.
-
-Wed Nov 15 23:04:36 1995 Jeffrey A Law (law@cygnus.com)
-
- * gcc.c-torture: Update to c-torture-1.39 release.
-
-Sat Nov 4 12:52:05 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/c-torture.exp (c-torture-execute): Don't return if one option
- fails, try others as well.
-
-Thu Nov 2 09:28:35 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/c-torture.exp (c-torture-execute): This proc's result is `void'.
- If compilation fails, mark execute tests as `untested'.
- If test is marked as unsupported, don't mark compilation and
- execute tests as failed.
-
-Wed Oct 25 20:57:55 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * lib/g++.exp (g++_init): Don't link in libg++, and look to
- libstdc++ for whether or not we want to be doing shared
- libraries. Delete link_curses since we don't need it anymore.
- * lib/mike-g++.exp (postbase): Don't link in libg++.
- * g++.old-deja/old-deja.exp: Likewise.
-
-Mon Oct 23 13:05:11 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * lib/g++.exp (CXX): Default to run `c++' instead of `g++'.
-
-Tue Oct 17 15:24:47 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * lib/g++.exp (g++_init): Also check for libg++.sl for the hppa.
- For that, add `-Wl,-a,shared_archive'.
- * g++.old-deja/old-deja.exp: Likewise.
-
-Tue Oct 17 13:09:06 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/c-torture.exp (c-torture-execute): Ensure CFLAGS restored.
-
-Mon Oct 16 23:13:32 1995 Brendan Kehoe <brendan@cygnus.com>
-
- * lib/mike-g++.exp (postbase): Pay attention to the status of
- g++_load.
-
-Mon Oct 16 19:28:32 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * g++.old-deja/old-deja.exp: Add $LIBS at the end of the args.
-
-Mon Oct 16 13:48:58 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/gcc.exp (default_gcc_start): No longer need to log program
- being executed or its output, execute_anywhere does that now.
- * lib/g++.exp (default_g++_version): Call execute_anywhere.
- (default_g++_start): Likewise. Delete calls to verbose/send_log.
-
-Thu Oct 12 10:34:58 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * g++.old-deja/old-deja.exp: Updated the shared libg++ tests to be
- the same as those in lib/g++.exp.
-
-Tue Oct 10 13:47:27 1995 Jeff Law (law@hurl.cygnus.com)
-
- * gcc.c-torture: Update to c-torture-1.38 release.
- * gcc.ieee: Related changes.
-
-Fri Oct 6 12:39:17 1995 Rob Savoye <rob@darkstar.cygnus.com>
-
- * mike-gcc.exp, mike-g++.exp: Use "execute_anywhere" rather than
- "exec". Minor reformatting changes.
-
- * config/rom68k.exp (${tool}_load): Make it work in a canadian
- cross. This means all "exec" calls now work on a remote host as
- well.
- * lib/c-torture.exp (c-torture-compile): Make work for a canadian
- cross. Filter out the extra "\r\n" stuff that expect puts in.
- (c-torture-execute): Filter out the bogus warnings like
- c-torture-compile does. Add support for canadian cross.
- * lib/gcc.exp (default_gcc_version, default_gcc_start)
- Use execute_anywhere rather than calling exec directly. Now it
- works for canadian cross testing.
-
-Thu Oct 5 10:06:45 1995 Brendan Kehoe <brendan@rtl.cygnus.com>
-
- * lib/g++.exp: Add -nocomplain flag to glob. Use catch to put the
- results into a variable, and check that rather than using file exists.
-
-Wed Oct 4 16:31:02 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * lib/g++.exp: Use glob to see libg++.so.2.7.0, since sun4 doesn't
- create a libg++.so. For sunos4.1.*, also add -ltermcap.
-
-Tue Sep 26 10:15:14 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * g++.old-deja/old-deja.exp: Create and pass runshlib and
- lib_curses if there's a shared libg++ in the build tree.
-
-Fri Sep 22 10:47:24 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/mike-{gcc,g++}.exp (postbase): Restore CFLAGS, CXX_FLAGS, LIBS
- if not supported target.
-
-Fri Sep 22 09:22:07 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * lib/g++.exp (g++_init): Move empty setting of runshlib and
- link_curses up to always happen, not just for native builds.
-
-Thu Sep 21 10:23:32 1995 Jeff Law (law@snake.cs.utah.edu)
-
- * gcc.c-torture: Update to c-torture-1.36 release.
- * gcc.failure: Related changes.
-
-Wed Sep 20 10:56:26 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/plumhall.exp (PHSRC, PHDST): Allow config files to override.
-
-Tue Sep 19 17:26:07 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * lib/g++.exp (g++_init): Put the shared and math lib stuff in here.
- * lib/mike-g++.exp (postbase): Not in here. Still reference
- runshlib, link_curses, and mathlib for link and run.
-
- * lib/mike-g++.exp (postbase): If we've built a libg++.so, then
- pass the runtime shared library options for Solaris, OSF/1, and
- Irix5, and link with -lcurses to avoid unresolved references.
-
-Wed Sep 13 15:28:10 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * lib/gcc.exp (gcc_init): Return if gcc_initialized is 1, so we
- only run once.
-
-Wed Sep 13 10:51:52 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/c-torture.exp (c-torture-compile): Don't alter CFLAGS.
-
-Mon Sep 11 11:02:03 1995 Jeff Law (law@snake.cs.utah.edu)
-
- * gcc.c-torture: Update to c-torture-1.35 release. Note we
- do not have a framework for the "compat" tests yet.
-
-Sat Sep 9 16:15:20 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * lib/mike-g++.exp (postbase): New local variable `mathlib',
- set to null if we're testing vxworks5.1. Use that instead of
- `-lm' in the setting of LIBS for link and run.
-
-Fri Sep 8 13:53:38 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * config/rom68k.exp (${tool}_load): Major changes to make it
- work. Verified that it does in fact return the stuff in
- exec_output properly. Catch any Emul or any TRAP other than 0.
-
-Thu Sep 7 23:04:06 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * lib/mike-g++.exp (prebase): Call g++_init at the end to set
- LDFLAGS properly for targets that need stuff from libgloss.
- * lib/g++.exp (g++_init): Return if gpp_initialized is 1, so we
- only run once.
- (gpp_initialized): New variable.
-
-Wed Sep 6 21:56:13 1995 Rob Savoye <rob@darkstar.cygnus.com>
-
- * config/rom68k.exp: Load libgloss.exp.
- * lib/gcc.exp (gcc_init): get proper flags for newlib and libgloss
- so we can produce a fully linked binary.
- * lib/g++.exp (g++_init): get proper flags for newlib and libgloss
- so we can produce a fully linked binary.
-
-Sun Sep 3 13:25:26 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/plumhall.exp (ph_section): Watch for expected failures.
- Add missing `else'.
-
- * lib/c-torture.exp (c-torture-execute): Look for .cexp files to
- run the testcase.
- (c-torture): Likewise.
-
-Mon Aug 28 11:23:38 1995 Doug Evans <dje@cygnus.com>
-
- * gcc.dg/dg.exp (scan-assembler, scan-assembler-not): New procs.
-
- * lib/mike-g++.exp (mike_cleanup): New proc.
- (prebase): New globals compiler_result, not_compiler_result,
- target_regexp.
- (postbase): Likewise. Call mike_cleanup. Pass "--" to regexp to
- allow leading "-" in pattern. Watch for unsupported tests.
- If $compiler_result is set, pattern match assembler code,
- and ditto for $not_compiler_result.
- * lib/mike-gcc.exp: Likewise.
-
- * lib/plumhall.exp (ph_execute): Only call ph_summary if
- execution "succeeded".
-
-Mon Aug 14 14:03:53 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * config/win32.exp: New file.
- * lib/c-torture.exp (c-torture-execute): Handle $exe_ext.
-
-Fri Aug 4 15:39:54 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/gcc-dg.exp (gcc-dg-prune): Mark testcases that fill ram as
- unsupported.
- * lib/mike-{gcc,g++}.exp (postbase): Likewise.
- * lib/{c-torture.exp,old-dejagnu.exp}: Likewise.
- * lib/{gcc,g++}.exp (${tool}_check_untested_p): New proc.
-
- * lib/mike-g++.exp (postbase): Delete alpha-*-* checking of
- "... without exceptions was ...". That is now handled by
- prune_system_crud.
- * lib/old-dejagnu.exp (old-dejagnu): Likewise.
-
-Tue Aug 1 11:09:33 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * gcc.misc-tests/{acker1.c,dhry.c,dhry.h,matrix1.c,optbench.c,
- sieve.c,sort2.c}: New files.
- * gcc.misc-tests/{acker1.exp,dhry.exp,matrix1.exp,optbench.exp,
- sieve.exp,sort2.exp}: Drivers for them.
-
- * lib/mike-gcc.exp (program_output): New user settable variable.
- (postbase): Call prune_system_crud. Also prune extraneous compiler
- messages.
- * lib/mike-g++.exp (program_output): New user settable variable.
-
- * gcc.misc-tests/mg.exp (compiler_output): Handle multiple lines.
-
- * config/sh.exp: Deleted (use sim.exp instead).
-
-Fri Jul 28 11:33:46 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * config/vx.exp: Declare CHECKTASK as global.
- * config/vxworks29k.exp: Reduce to only set CHECKTASK, and load vx.exp.
- * lib/mike-g++.exp: Load [pwd]/a.out, not `./a.out'.
- * lib/old-dejagnu.exp: Load [pwd]/$executable.
-
-Wed Jul 26 19:45:39 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
-
- * config/vxworks29k.exp: New file, for the a29k-vxworks5.1
- target. Like vx.exp, only includes `vx29k.exp' instead of
- `vxworks.exp'.
-
-Sun Jul 23 17:38:52 1995 Ian Lance Taylor <ian@cygnus.com>
-
- * config/sim.exp: Increase time limit from 120 seconds to 240.
-
-Thu Jul 6 11:07:38 1995 Jeffrey A. Law <law@rtl.cygnus.com>
-
- * gcc.c-torture/execute/950628-1.c: New test.
-
-Sat Jun 10 18:51:41 1995 Jeff Law (law@snake.cs.utah.edu)
-
- * gcc.c-torture: Update with changes/additions from
- c-torture-1.34.
-
-Mon Jun 5 17:58:07 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * gcc.prms/prms.exp: Pass LDFLAGS to dg-test.
-
-Sun Jun 4 05:13:57 1995 Jeff Law (law@snake.cs.utah.edu)
-
- * gcc.c-torture/compile/funcptr-1.c: Test case for 7107.
-
-Thu Jun 1 00:06:19 1995 Jeff Law (law@snake.cs.utah.edu)
-
- * gcc.c-torture/compile/950512-1.c: New test.
- * gcc.c-torture/execute/strct-pack-4.c, strct-pack-5.c}: Likewise.
- * gcc.dg/struct-ret-1.c: Likewise.
-
-Wed May 31 14:25:13 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * gcc.c-torture/execute/{920410-1.c,921113-1.c,921208-2.c,
- 930106-1.c,memcpy-1.c}: Use STACK_SIZE if defined.
-
-Tue May 30 11:19:54 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * gcc.c-torture/special/920411-1.c: Deleted.
- * gcc.c-torture/special/special.exp: Delete 920411-1.c.
-
-Mon May 22 16:55:11 1995 Doug Evans <dje@chestnut.cygnus.com>
-
- * config/sim.exp (${tool}_load): Hack in call to bash to get a
- cpu limit.
-
-Fri May 12 18:57:54 1995 Torbjorn Granlund <tege@rtl.cygnus.com>
-
- * gcc.c-torture/execute/{950511-1.c,950512-1.c}: New tests.
-
-Thu May 4 14:23:54 1995 Torbjorn Granlund <tege@adder.cygnus.com>
-
- From kenner;
- * gcc.c-torture/execute/va-arg-2.c (f[0-9], f1[0-5]): Verify format
- is the proper length.
- * va-arg-3.c: Likewise.
-
-Sun Apr 30 16:02:59 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/dg.exp: Moved to dejagnu/lib. Copy kept here (for awhile).
- * lib/gcc-dg.exp: New file, gcc interface to dg.exp.
-
- * lib/gcc.exp (default_gcc_start): Delete old cruft. Delete result.
- * lib/g++.exp (default_g++_start): Delete old cruft.
-
-Tue Apr 25 17:20:18 1995 Torbjorn Granlund <tege@cygnus.com>
-
- * gcc.c-torture/execute/memcpy-1.c: Decrease stack requirements from
- (2 * (1 << 18)) to (2 * (1 << 17)).
-
- * gcc.c-torture/execute/arith-rand.c: Avoid -0x80000000/-1.
-
-Thu Apr 20 12:21:13 1995 J.T. Conklin <jtc@rtl.cygnus.com>
-
- * config/rom68k.exp: Renamed from config/idp.exp
-
-Tue Apr 18 13:33:26 1995 Torbjorn Granlund <tege@rtl.cygnus.com>
-
- * c-torture/compile/921109-2.c
-
-Tue Apr 18 10:45:12 1995 Mike Stump <mrs@cygnus.com>
-
- * lib/old-dejagnu.exp: We expect Execution test failure if we expected
- excess errors.
-
-Sat Apr 15 11:16:58 1995 Doug Evans <dje@chestnut.cygnus.com>
-
- * lib/gcc.exp (default_gcc_start): Handle leading "-" in compiler
- output.
- * lib/g++.exp (default_g++_start): Likewise.
-
-Wed Mar 29 16:34:03 1995 Torbjorn Granlund <tege@adder.cygnus.com>
-
- * gcc.c-torture/compile/950329-1.c: New test.
-
-Tue Mar 28 16:10:33 1995 J.T. Conklin <jtc@rtl.cygnus.com>
-
- * config/bug.exp (${tool}_load): Updated to use new remote_open
- and remote_close procs.
- * config/idp.exp: New file.
-
-Wed Mar 22 15:01:58 1995 Torbjorn Granlund <tege@rtl.cygnus.com>
-
- * gcc.c-torture/execute/950322-1.c: New test.
-
-Tue Mar 21 21:24:49 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * config/vx.exp (${tool}_load): Clean up testing of return code from
- vxworks_ld and vxworks_spawn.
-
-Tue Mar 21 17:01:42 1995 Doug Evans <dje@deneb.cygnus.com>
-
- * lib/c-torture.exp (c-torture-execute): Pass same text to pass/fail.
-
-Mon Mar 13 14:49:42 1995 Mike Stump <mrs@cygnus.com>
-
- * lib/old-deja.exp: Add `excess errors test - ' error, now one
- can mark excess errors on a machine by machine basis. Note, the
- default is to not expect any excess errors, even when excess
- errors test - is given, so you will want to put an XFAIL ... on
- these lines. For example, // excess errors test - XFAIL hppa*-*-*
- mips-*-* alpha-*-* m68k-*-* is how to expect excess errors on
- those 4 machines, but no others.
-
-Fri Mar 10 12:33:04 1995 J.T. Conklin <jtc@rtl.cygnus.com>
-
- * gcc.c-torture/execute/execute.exp (c-torture-execute): from here.
- * lib/c-torture.exp: to here.
-
-Fri Mar 10 10:38:15 1995 Torbjorn Granlund <tege@adder.cygnus.com>
-
- * gcc.c-torture/execute/950221-1.c: New test.
- * gcc.c-torture/execute/struct-ret-1.c: New test.
- * gcc.c-torture/compile/950221-1.c: New test.
-
- * gcc.c-torture/execute/941101-1.c (f): Fix typo, == was !=.
-
-Fri Mar 3 16:28:35 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * gcc.c-torture/execute/arith-1.c (main): Return 0.
- * gcc.c-torture/execute/arith-rand.c (main): Return 0.
-
-Wed Mar 1 02:08:29 1995 Gerald Baumgartner (gb@lorenzo.cs.purdue.edu)
-
- * g++.gb: New directory of tests, derived from my signature and
- class scoping tests.
-
- * g++.gb/{sig01.C, sig02.C, sig03.C, sig04.C}: New tests.
- * g++.gb/{sig05.C, sig06.C, sig07.C, sig08.C}: Likewise.
- * g++.gb/{sig09.C, sig10.C, sig11.C, sig12.C}: Likewise.
- * g++.gb/{sig13.C, sig14.C, sig15.C, sig16.C}: Likewise.
- * g++.gb/{sig17.C, sig18.C, sig19.C, sig20.C}: Likewise.
- * g++.gb/{sig21.C, sig22.C, sig23.C, sig24.C}: Likewise.
- * g++.gb/sig25.C: Likewise.
-
- * g++.gb/{sig01.exp, sig02.exp, sig03.exp, sig04.exp}: Run them.
- * g++.gb/{sig05.exp, sig06.exp, sig07.exp, sig08.exp}: Likewise.
- * g++.gb/{sig09.exp, sig10.exp, sig11.exp, sig12.exp}: Likewise.
- * g++.gb/{sig13.exp, sig14.exp, sig15.exp, sig16.exp}: Likewise.
- * g++.gb/{sig17.exp, sig18.exp, sig19.exp, sig20.exp}: Likewise.
- * g++.gb/{sig21.exp, sig22.exp, sig23.exp, sig24.exp}: Likewise.
- * g++.gb/sig25.exp: Likewise.
-
- * g++.gb/{scope01.C, scope02.C, scope03.C, scope04.C}: New tests.
- * g++.gb/{scope05.C, scope06.C, scope07.C, scope08.C}: Likewise.
- * g++.gb/{scope09.C, scope10.C, scope11.C, scope12.C}: Likewise.
- * g++.gb/scope13.C: Likewise, this test still fails.
-
- * g++.gb/{scope01.exp, scope02.exp, scope03.exp, scope04.exp}: Run 'em.
- * g++.gb/{scope05.exp, scope06.exp, scope07.exp, scope08.exp}: Ditto.
- * g++.gb/{scope09.exp, scope10.exp, scope11.exp, scope12.exp}: Ditto.
- * g++.gb/scope13.exp: Ditto.
-
- * g++.gb/README: New file, explains what these tests are about.
-
-Tue Feb 28 10:37:52 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/dg.exp (dg-do): Support `preprocess'.
- (dg-test): Likewise.
-
-Mon Feb 13 15:18:10 1995 J.T. Conklin <jtc@rtl.cygnus.com>
-
- * config/udi.exp: change "continue -expect" to "exp_continue".
-
-Sat Feb 11 00:25:20 1995 Torbjorn Granlund (tege@tiny.cygnus.com)
-
- * gcc.c-torture/execute/{921025-1.c, 930525-1.c}:
- Delete redundant tests.
-
- * gcc.c-torture/execute/{941014-1.c, 941014-2.c}: New tests.
- * gcc.c-torture/execute/{941015-1.c, 941021-1.c}: New tests.
- * gcc.c-torture/execute/{941025-1.c, 941031-1.c}: New tests.
- * gcc.c-torture/execute/{941101-1.c, 941110-1.c}: New tests.
- * gcc.c-torture/execute/{941202-1.c, arith-1.c}: New tests.
- * gcc.c-torture/execute/{arith-rand.c, complex-3.c}: New tests.
- * gcc.c-torture/execute/{inst-check.c, loop-1.c}: New tests.
- * gcc.c-torture/execute/{memcpy-1.c, va-arg-2.c}: New tests.
-
- * gcc.c-torture/execute/920302-1.c: Use void * instead of long for
- storing label pointers.
- * gcc.c-torture/execute/921019-1.c: Likewise.
- * gcc.c-torture/execute/920501-8.c: Add prototype for sprintf.
- * gcc.c-torture/execute/930513-1.c: Provide full declaration for
- parameter fp.
- * gcc.c-torture/execute/va-arg-1.c (main): Add L suffix to all
- constants.
-
- * gcc.c-torture/compile/{920501-14.c, 931127-1.c}:
- Delete obsolete tests.
-
- * gcc.c-torture/compile/{940409-1.c, 940718-1.c}: New tests.
- * gcc.c-torture/compile/{941014-1.c, 941014-2.c}: New tests.
- * gcc.c-torture/compile/{941014-3.c, 941014-4.c}: New tests.
- * gcc.c-torture/compile/{941019-1.c, 941111-1.c}: New tests.
- * gcc.c-torture/compile/{941113-1.c, 950122-1.c}: New tests.
- * gcc.c-torture/compile/950124-1.c: New test.
-
- * gcc.c-torture/compile/920902-1.c: Delete 2:nd parameter.
-
-Wed Feb 8 15:30:17 1995 Jason Merrill <jason@phydeaux.cygnus.com>
-
- * lib/mike-g++.exp: Add -lm to LIBS.
-
-Tue Feb 7 17:09:50 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/c-torture.exp (c-torture): Allow relative pathname in $srcdir.
-
-Mon Jan 30 14:33:25 1995 Jason Merrill <jason@phydeaux.cygnus.com>
-
- * lib/mike-g++.exp: Add -lstdc++ to LIBS.
-
-Thu Jan 12 16:41:34 1995 Doug Evans <dje@canuck.cygnus.com>
-
- * gcc.misc-tests/dg-test.exp: Only run if $DG_TEST=yes.
-
-Mon Jan 2 11:50:10 1995 Jeff Law (law@snake.cs.utah.edu)
-
- * g++.law/{arg9.C, arg10.C, arg11.C, arm15.C, arm16.C}: New tests.
- * g++.law/{bad-error3.C, bad-error4.C, bad-error5.C}: Likewise.
- * g++.law/{bad-error6.C, bad-error7.C}: Likewise.
- * g++.law/{bit-fields3.C, casts2.C, casts3.C}: Likewise.
- * g++.law/{enum8.C, enum9.C, friend5.C}: Likewise.
- * g++.law/{nest2.C, nest3.C, nest4.C, nest5.C}: Likewise.
- * g++.law/{nest6.C, next7.C, operators30.C}: Likewise.
- * g++.law/{operators31.C, operators32.C,
- * g++.law/{operators33.C, operators34.C}: Likewise.
- * g++.law/{pic1.C, refs2.C}: Likewise.
- * g++.law/{refs3.C, refs4.C, static-mem3.C}: Likewise.
- * g++.law/{static-mem4.C, static-mem5.C, typeck4.C}: Likewise.
- * g++.law/{vbase1.C, visibility27.C, visibility28.C}: Likewise.
- * g++.law/{vtable2.exp, vtable3.exp}: Likewise.
-
- * g++.law/{arg9.exp, arg10.exp, arg11.exp, arm15.exp}: Run them.
- * g++.law/{arm16.exp, bad-error3.exp, bad-error4.exp: Likewise.
- * g++.law/{bad-error5.exp, bad-error6.exp}: Likewise.
- * g++.law/{bad-error7.exp, bit-fields3.exp}: Likewise.
- * g++.law/{casts2.exp, casts3.exp, enum8.exp}: Likewise.
- * g++.law/{enum9.exp, friend5.exp}: Likewise.
- * g++.law/{nest3.exp, nest4.exp}: Likewise.
- * g++.law/{nest5.exp, nest6.exp, nest7.exp}: Likewise.
- * g++.law/{operators30.exp, operators31.exp}: Likewise.
- * g++.law/{operators32.exp, operators33.exp}: Likewise.
- * g++.law/{operators34.exp}: Likewise.
- * g++.law/{pic1.exp, refs2.exp, refs3.exp refs4.exp}: Likewise.
- * g++.law/{static-mem3.exp, static-mem4.exp}: Likewise.
- * g++.law/{static-mem5.exp, typeck4.exp, vbase1.exp}: Likewise.
- * g++.law/{visibility27.exp, visibility28.exp}: Likewise.
- * g++.law/{vtable2.exp, vtable3.exp}: Likewise.
-
- * g++.law/{union4.exp, visibility17.exp}: Fix expected output.
- No longer expected to fail.
- * g++.law/missed-error3.C: Tweak for recent bool changes.
-
-Sun Dec 4 20:54:33 1994 Doug Evans <dje@canuck.cygnus.com>
-
- * config/emb-unix: Deleted.
- * config/unix.exp (${tool}_load): Use new proc rsh_exec to perform
- remote execution. Do final link on remote host if REMOTE_LINK is set.
-
-Thu Dec 1 08:43:05 1994 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/dg.exp (dg-test): Fix typo in last patch.
-
-Wed Nov 30 13:25:32 1994 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/dg.exp (dg-test): Fix pattern that searches for expected output
- (handles multiple occurrences).
-
-Thu Nov 24 19:48:38 1994 Doug Evans <dje@canuck.cygnus.com>
-
- * gcc.c-torture/*/*.exp: Pass full pathname to c-torture.
- * gcc.c-torture/execute/execute.exp (c-torture-execute): Remove
- $srcdir from pathname in pass/fail messages (but ensure $subdir *is*
- printed).
- * lib/c-torture.exp (c-torture-compile): Likewise.
- (c-torture): Prepend full path if missing.
- * lib/gcc.exp (gcc_pass): Pass entire pathname of testcase.
- (gcc_fail): Likewise.
- * lib/dg.exp (dg-test): Don't delete $subdir from pathname in messages.
-
-Wed Nov 23 13:56:00 1994 J.T. Conklin <jtc@rtl.cygnus.com>
-
- * lib/netware.exp: Only attach to NetWare i386 systems.
-
-Wed Nov 16 11:27:00 1994 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/dg.exp (dg-test): Don't print $subdir (or above) in pass/fail
- messages. Add test name to "output pattern match" pass/fail message.
-
-Sat Nov 12 22:11:52 1994 Doug Evans <dje@canuck.cygnus.com>
-
- * gcc.dg: New testsuite.
- * gcc.dg/dg.exp: New file.
-
- * gcc.misc-tests/{misc.exp,inst-check.c,test-ior.c,test-consts.c,
- test-switch.c}: Deleted.
-
- * gcc.misc-tests/msgs.exp: New testcase driver.
-
-Wed Nov 9 14:23:09 1994 Doug Evans <dje@canuck.cygnus.com>
-
- * gcc.c-torture/execute/execute.exp (c-torture_execute): New proc.
- Watch for illegal return values from ${tool}_load.
- * config/unix.exp (${tool}_load): Fix pass/fail detection for
- cross targets. Coerce return value >0 to 1.
-
-Tue Nov 8 14:10:33 1994 Doug Evans <dje@canuck.cygnus.com>
-
- * config/unix.exp (${tool}_load): Call program rsh, not proc.
-
- * config/emb-unix.exp: New file.
-
- * config/sim.exp: Error if variable $SIM not defined.
- (${tool}_load): Mark test as "untested" if simulator missing.
-
- * config/unix.exp: Load remote.exp to get rcp_download.
- * lib/c-torture.exp: Use different option lists for testcases with
- and without loops.
- * gcc.c-torture/execute/execute.exp: Likewise.
-
-Wed Nov 2 14:47:58 1994 Doug Evans <dje@canuck.cygnus.com>
-
- * config/*.exp: Clarify return code from ${tool}_load.
- Call `unresolved' or `untested' instead of `warning' or `perror'
- (sometimes you still want to call both though).
- Add comment that `shell_id' is local to each file.
- * config/udi.exp (timeout): Set to 30.
- Don't print warning if connection fails, $connectmode has already
- printed an error.
- (${tool}_load): Move verbose messages to level 2.
- Rework pattern for "Process started" message.
- Pass `shell_id' to ${connectmode}_download.
- Retry twice upon timeout. Make resetting of target more robust.
- (${tool}_exit): Remove /tmp/soc_name. if connected ok (bug in mondfe).
- Pass `shell_id' to exit_$connectmode.
- Only call exit_$connectmode if connected.
- * config/unix.exp (${tool}_load): Check return codes better.
- * config/vrtx.exp (${tool}_load): Likewise.
- * config/vx.exp (${tool}_load): Likewise.
- Delete unneeded global's.
- * lib/dg.exp (dg-test): Update to reflect clarified return codes
- from ${tool}_load.
- (dg-stat): Delete.
- (dg-init): Delete recording of pass/fail counts.
- * lib/old-dejagnu.exp (old-dejagnu): Likewise.
- (old-dejagnu-init): Likewise.
- (old-dejagnu-stat): Delete contents, empty proc now.
- * lib/c-torture.exp (TORTURE_OPTIONS): New global.
- (c-torture): Delete references to lcnt, lpass, lfail.
- Get option list from TORTURE_OPTIONS.
- Delete -funroll[-all]-loops if no loops.
- * lib/g++.exp (g++_init): Delete references to lcnt, lpass, lfail.
- (g++_stat): Delete contents (empty proc now).
- * lib/gcc.exp (gcc_init): Delete references to pass/fail counts.
- (gcc_finish): Likewise.
- (gcc_stat): Deleted.
- * lib/mike-gcc.exp (postbase): Delete references to lcnt, lpass, lfail.
- * gcc.*/*.exp: Delete calls to gcc_stat, dg-stat.
- * gcc.c-torture/execute/execute.exp: Likewise.
- Split tests into two parts: compile, execute.
- Get option list from TORTURE_OPTIONS. Delete -funroll[-all]-loops if
- no loops. Update to reflect clarified return codes from ${tool}_load.
-
-Fri Oct 21 23:10:16 1994 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/old-dejagnu.exp (process-option): Append ".*" to pattern
- to grep for.
- (old-dejagnu): Likewise (where necessary).
-
-Fri Oct 14 17:54:58 1994 Doug Evans <dje@canuck.cygnus.com>
-
- * gcc.misc-tests/gcov.exp: New file, for gcov testing.
-
- * lib/dg.exp (dg-process-target): Fix processing of selector.
- Add comment regarding use of `error'.
-
- * lib/gcc.exp (prune_system_crud): Define if missing.
- * lib/g++.exp (prune_system_crud): Likewise.
-
- * lib/{c-torture.exp,dg.exp,mike-g++.exp,old-dejagnu.exp}:
- Call prune_system_crud.
- * lib/dg.exp (dg-runtest): New proc.
- Use perror instead of send_user for tcl errors in testcase.
- Don't return any value, it's never used.
- Don't clobber previous definition of `unknown'.
- Print tcl errors in `dg-final'.
-
-Wed Oct 12 13:05:37 1994 Doug Evans <dje@canuck.cygnus.com>
-
- * lib/dg.exp (dg-process-target): Improve syntax error messages.
- (dg-test): Don't print errorInfo, it contains stack backtrace.
-
-Mon Sep 26 12:18:53 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * lib/g++.exp (runtest_file_p): Define if missing.
-
-Sat Sep 24 15:29:23 1994 Doug Evans (dje@cygnus.com)
-
- * lib/mike-g++.exp: Comment out loading of g++.exp.
- * lib/g++.exp: Update copyright. Test for existence of $CXX at start.
- (default_g++_version): Always print something.
- (default_g++_start): Comment out call to `which'.
- (g++_start, g++_load): Deleted (must be defined in config file).
- * lib/gcc.exp: Test for existence of $CC at start.
- Delete check for tmpdir (done in gcc_init).
- (default_gcc_version): Always print something.
- (default_gcc_start): Comment out call to `which'.
- * config/*.exp: Major cleanup - make cross targets work at least a
- little better for g++ (by not being "--tool gcc" specific).
- Rename gcc_xxx to ${tool}_xxx.
- * g++.old-deja/old-deja.exp: utils.exp is loaded by runtest.exp.
- * lib/old-dejagnu.exp: ${tool}.exp is loaded by config file.
-
-Thu Sep 22 11:39:17 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * lib/c-torture.exp (c-torture-compile): Rework compiler
- message processing.
-
- * gcc.c-torture/compile/initbug1.{c,exp}: Deleted, not part of
- c-torture.
-
-Wed Sep 21 09:49:43 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * gcc.wendy/wendy.dis: Renamed from wendy.exp to disable the testsuite.
-
- * lib/dg.exp (dg-process-target): Support { target native }.
-
-Tue Sep 20 17:16:55 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * lib/dg.exp (dg-test): Clean up some comments. Delete code that
- looked for "... program xxx got fatal signal".
- Correct regsub munging of `comp_output'.
- Ignore compiler messages "path prefix not used" and "linker input
- file unused".
-
-Wed Sep 14 11:44:40 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * lib/gcc.exp (runtest_file_p): Define if missing.
- * gcc.prms/template.c: Example to work from.
-
-Tue Sep 13 10:30:48 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * lib/gcc.exp (gcc_finish): Delete code to update `testcnt'.
- * lib/dg.exp (dg-test): Call unsupported testcases as such.
-
- * gcc.prms/{3324.c,3565.c}: Moved from compile/940713-[12].c.
- * gcc.prms/1883.c: Moved from compile/940714-1.c.
- * gcc.prms/{5012.c,4453.c,4723.c,2541.c}: Moved from
- execute/{940712-1.c,940712-2.c,940713-1.c,940714-1,c}.
-
- * lib/dg.exp (user option docs): Clean up docs on target/xfail option.
- (dg-process-target): No longer a varargs proc.
- Return S/N for target, P/F for xfail. All callers changed.
- (user option procs): More argument checking.
- (dg-do): `dg-do-what' now contains 3 elements {what flag P/F}.
- (dg-output): `dg-output-text' now contains 2 elements {P/F text}.
- (dg-test): Skip test if not running on selected target in `dg-do'.
- Update handling of `dg-do-what', `dg-output-text'.
- Separate execution pass/fail from output pattern match pass/fail.
- Delete BUILD/XBUILD support (duplicate of LOSE/XLOSE).
-
-Mon Sep 12 13:47:35 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
-
- * gcc.c-torture/special/special.exp: Don't expect failure for mips
- target for 920510-1.c.
-
-Mon Sep 12 12:44:39 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * lib/gcc.exp (gcc_init): Move initialized message to verbose level 3.
- Clean up comment regarding use of passcnt, etc.
- (gcc_stat): Don't update `testcnt' here.
- (gcc_finish): Do it here.
- Might as well reset `but_id' here too.
- * gcc.c-torture/code_quality/code_quality.exp: Call `runtest_file_p'
- to determine if the file should be tested.
- * gcc.c-torture/compile/compile.exp: Likewise.
- * gcc.c-torture/execute/execute.exp: Likewise.
- * gcc.c-torture/unsorted/unsorted.exp: Likewise.
- * gcc.misc-tests/dg-test.exp: Likewise.
- * gcc.prms/prms.exp: Likewise.
- * gcc.wendy/wendy.exp: Likewise.
- * g++.old-deja.exp: Likewise.
- Move "Testing file" message to verbose level 1.
-
-Fri Sep 9 10:21:18 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * gcc.wendy/t.c: Add DEJAGNU_CFLAGS:"-DNOPAUSE".
-
-Thu Sep 8 16:52:43 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * lib/gcc.exp: Ensure CFLAGS, LIBS, and LDFLAGS are set.
- (default_gcc_start): Accept optional second list element
- of compiler flags. Print compiler output at verbosity level 2.
- Remove setting of CFLAGS, LIBS, LDFLAGS from here.
- (gcc_init): Delete globals lcnt, lpass, lfail, lxpass, lxfail.
- Save current values of framework globals passcnt, failcnt, xpasscnt,
- and xfailcnt in gcc_passcnt, gcc_failcnt, gcc_xpasscnt, and
- gcc_xfailcnt. Set global `tmpdir' to /tmp if it doesn't exist.
- (gcc_stat): Use framework globals passcnt, failcnt, xpasscnt, and
- xfailcnt to compute stats. Update framework global `testcnt' from
- pass/fail counts.
- (gcc_finish): New proc. Clean up test environment.
- (gcc_cpass, gcc_cfail): Rename to gcc_pass/gcc_fail.
- (gcc_epass, gcc_efail): Delete.
- * lib/dg.exp (dg-error, dg-warning, dg-bogus): Accept optional 5th
- argument of line number.
- (dg-init): If the tool has an init routine, call it.
- (dg-test): Remove args `cflags_var' and `libs_var'.
- Pass all compiler options to ${tool}_start.
- Handle missing line number.
- (dg-finish): New function.
- * gcc.c-torture/code_quality/code_quality.exp: Add support for testing
- particular files. Call gcc_finish at end. Move "skipping test"
- message to verbosity level 3.
- * gcc.c-torture/compile/compile.exp: Likewise.
- * gcc.c-torture/unsorted/unsorted.exp: Likewise.
- * gcc.c-torture/execute/execute.exp: Likewise.
- Delete setting of prms_id, bug_id, lcnt, lfail, lpass.
- Print testcase being tried at verbosity level 1.
- * gcc.c-torture/special/special.exp: Unset xfail.
- Delete setting of prms_id, bug_id, lcnt, lfail, lpass.
- * gcc.c-torture/compile/initbug1.exp: Call gcc_finish.
- * gcc.c-torture/noncompile/noncompile.exp: Likewise.
- * gcc.failure/failure.exp: Likewise.
- * gcc.ieee/ieee.exp: Likewise.
- * gcc.misc-tests/dg-test.exp: Delete LDFLAGS.
- Update call to dg-test. Call dg-finish at end.
- * gcc.misc-tests/mg.exp: Call gcc_finish at end. Unset orig_flags.
- Delete setting of prms_id, bug_id, lcnt, lfail, lpass.
- * gcc.misc-tests/misc.exp: Call gcc_finish at end.
- * gcc.prms/prms.exp: Delete loading of utils.exp (redundant).
- Delete LDFLAGS. Update call to dg-test. Call dg-finish at end.
- * gcc.wendy/wendy.exp: Add copyright.
- Delete setting of tmpdir (done by gcc_init).
- Call gcc_pass/gcc_fail instead of gcc_[ce]pass/fail.
- Pass compiler flags to gcc_start. Call gcc_finish at end.
- * lib/c-torture.exp: Call gcc_pass/gcc_fail instead of
- gcc_[ce]pass/fail.
-
-Wed Sep 7 11:09:08 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * lib/g++.exp (g++_start): Rename arg to `prog' to avoid varargs
- confusion.
- (g++_load): Likewise.
-
- * config/*.exp (gcc_load): Some were varargs fns and some were not.
- Rename argument to `prog' to remove the confusion.
- Varargs fns behave differently too!
- (g++_load): Likewise.
-
- * lib/dg.exp (dg-stat): Correct calculation of npass, nfail.
-
- * config/unix.exp (gcc_load): Rename `args' to `prog' because that's
- what it is. Delete (always) printing of status value for !native.
- Simplify verbose code, and include status and exec_output.
- (g++_load): Use gcc_load.
-
-Sun Sep 4 13:59:27 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
-
- * gcc.c-torture/noncompile/920928-1.c: Delete obsolete file.
- * gcc.c-torture/noncompile/noncompile.exp: Delete support for
- 920928-1.c, 921017-1.c, 940712-1.c, 940714-1.c, 940714-2.c,
- 940714-3.c as these testcases don't exist anymore. Make
- va-arg-1.c expected to pass.
-
-Fri Aug 19 12:27:07 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * gcc.misc-tests/misc.exp: Only run specific testcases.
- * gcc.misc-tests/dg-test.exp: New file. Tests dg.exp.
- * gcc.misc-tests/dg-[1-9].c: New files.
-
- * lib/dg.exp: New testsuite driver.
- * gcc.prms/prms.exp: Use it.
-
- * README.gcc: New file.
-
- * lib/gcc.exp (gcc_init): Delete srcdir, no longer referenced.
- Document and reset `lxpass' and `lxfail'.
- Simplify "initialized" message.
- (gcc_stat): Clean up comments a little.
-
-Tue Aug 16 11:16:46 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * gcc.prms/prms.exp: New driver for gcc.prms testsuite directory.
-
-Mon Aug 15 21:20:36 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * lib/old-dejagnu.exp (process-option): New proc.
- (old-dejagnu-init, old-dejagnu-stat): Likewise.
- (old-dejagnu): Simplify.
- * g++.old-deja/old-deja.exp: Update to new version of old-dejagnu.
-
-Sun Aug 14 09:23:53 1994 Jeff Law (law@snake.cs.utah.edu)
-
- * lib/c-torture.exp (c-torture): Only call setup_xfail if $xfail
- exists and is not an empty string.
-
- * gcc.c-torture/special/special.exp (920520-1.c, 930510-1): Set
- $xfail rather than calling setup_xfail. Clear $xfail when test is
- finished.
- (920717-x.c): Add $srcdir/$subdir as "gcc_start" does not do it
- automatically.
-
- * gcc.c-torture/noncompile/noncompile.exp (940712-1 test): No
- longer expected to fail.
-
- * gcc.c-torture/execute/strct-pack-3.c: Add missing argument to
- "f" function call.
-
- * gcc.misc-tests/mg.exp: Call gcc_stat when finished.
-
- * gcc.c-torture/execute/{920202-1.c, 931208-1.c, 931228-1.c,
- 940115-1.c, 940122-1.c, bf-pack-1.c, bf64-1.c, comp-goto-1.c,
- complex-2.c, packed-1.c, strct-pack-2.c strct-pack-3.c,
- struct-ini-2.c, struct-ini-3.c, va-arg-1.c}: Import from
- c-torture-1.29.
-
- * gcc.c-torture/execute/{nest-stdar-1.c, struct-ini-1.c,
- strct-pack-1.c, strct-varg-1.c}: Renamed to match c-torture-1.29.
-
- * gcc.c-torture/execute/920612-2.c: Update to c-torture-1.29.
-
- * gcc.c-torture/noncompile/{931203-1.c, 940112-1.c, 940227-1.c,
- 940510-1.c, init-1.c, init-2.c}: Import from c-torture-1.29
-
- * gcc.c-torture/compile/{920928-6.c, 931203-1.c, 940611-1.c,
- 940712-1.c, calls.c, combine-hang.c, goto-1.c, init-2.c,
- labels-1.c, packed-1.c, zero-strct-1.c}: Import from c-torture-1.29.
-
-Tue Jul 12 12:49:44 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
-
- * gcc.execute/{940712-1.c, 940712-2.c, 940713-1.c, 940714-1.c},
- gcc.noncompile/{940712-1.h, 940712-1a.h, 940712-1b.h, 940712-1.c,
- 940714-1.c, 940714-2.c, 940714-3.c},
- gcc.compile/{940713-1.c, 940713-2.c, 940714-1.c},
- gcc.misc-tests/{mg.c,mg.exp}:
- New tests.
- * gcc.noncompile/noncompile.exp: Change accordingly.
-
-Thu Jul 7 14:20:33 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * config/sim.exp, lib/c-torture.exp, lib/gcc.exp:
- Undo previous clobberage.
-
-Mon Jul 4 17:00:59 1994 Jeff Law (law@snake.cs.utah.edu)
-
- * gcc.compile/{931102-1.c, 931102-2.c, 931031-1.c}:
- * gcc.special/{930510-1.c, special.exp}:
- * gcc.execute/{931031-1.c, 931110-1.c, 931110-2.c, 931102-1.c,
- 931102-2.c, struct-pack-1.c, divmod-1.c, complex-1.c,
- struct-varargs-1.c}: New tests from c-torture-1.26.
-
-Tue Jun 28 17:39:42 1994 J.T. Conklin (jtc@phishhead.cygnus.com)
-
- * gcc.wendy/wendy.exp: add --'s so that -1 isn't parsed as an
- argument to switch.
-
-Sat May 21 10:39:38 1994 Bill Cox (bill@rtl.cygnus.com)
-
- * Revert the previous changes. Please see Rob's directory
- (/lisa/test/rob/progressive/gcc/testsuite) for testing
- fixes.
-
-Thu May 19 18:00:03 1994 Bill Cox (bill@rtl.cygnus.com)
-
- * config/sim.exp, config/udi.exp, config/unix.exp, config/vx.exp,
- g++.brendan/alignof.exp, g++.brendan/arm3.exp, g++.brendan/code-gen5.exp,
- g++.brendan/crash29.exp, g++.brendan/crash5.exp, g++.brendan/cvt3.exp,
- g++.brendan/delete1.exp, g++.brendan/nest12.exp, g++.brendan/nest13.exp,
- g++.brendan/overload3.exp, g++.brendan/redecl1.exp, g++.brendan/visibility2.exp,
- g++.jason/cond.exp, g++.jason/hmc1.exp, g++.jason/report.exp,
- g++.law/access1.exp, g++.law/access2.exp, g++.law/arg6.exp,
- g++.law/arg7.exp, g++.law/arg8.exp, g++.law/arm1.exp,
- g++.law/arm10.exp, g++.law/arm4.exp, g++.law/arm5.exp,
- g++.law/ctors15.exp, g++.law/ctors19.exp, g++.law/cvt1.exp,
- g++.law/cvt12.exp, g++.law/cvt13.exp, g++.law/cvt18.exp,
- g++.law/cvt22.exp, g++.law/cvt3.exp, g++.law/cvt5.exp,
- g++.law/cvt6.exp, g++.law/cvt8.exp, g++.law/dtors3.exp,
- g++.law/except1.exp, g++.law/except3.exp, g++.law/except4.exp,
- g++.law/except5.exp, g++.law/except6.exp, g++.law/init5.exp,
- g++.law/init8.exp, g++.law/inline4.exp, g++.law/memoized1.exp,
- g++.law/missing1.exp, g++.law/operators14.exp, g++.law/operators18.exp,
- g++.law/operators9.exp, g++.law/scope2.exp, g++.law/temps2.exp,
- g++.law/temps3.exp, g++.law/temps5.exp, g++.law/typeck2.exp,
- g++.mike/misc4.exp, g++.mike/misc6.exp, g++.niklas/t118.exp,
- g++.niklas/t128.exp, g++.niklas/t138.exp, g++.niklas/t139.exp,
- g++.niklas/t140.exp, g++.niklas/t141.exp, gcc.code_quality/code_quality.exp,
- gcc.compile/compile.exp, gcc.dje/dje.exp, gcc.execute/execute.exp,
- gcc.failure/failure.exp, gcc.ieee/ieee.exp, gcc.noncompile/noncompile.exp,
- gcc.special/special.exp, gcc.unsorted/unsorted.exp, lib/c-torture.exp,
- lib/chill.exp, lib/g++.exp, lib/gcc.exp, lib/mike-g++.exp, lib/mike-gcc.exp,
- lib/old-dejagnu.exp: Checkin Rob's 94Q1 testing changes.
-
-Tue May 17 14:55:09 1994 Bill Cox (bill@rtl.cygnus.com)
-
- * config/udi.exp, gcc.execute/execute.exp, gcc.wendy/wendy.exp,
- lib/g++.exp, lib/old-dejagnu.exp: Replace error proc calls
- with perror calls.
-
-Mon May 2 17:41:13 1994 Jason Merrill (jason@deneb.cygnus.com)
-
- * config/unix.exp (g++_load): Fix syntax.
-
-Thu Apr 14 12:22:10 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
-
- * gcc.compile/initbug1.exp (CFLAGS): Add space at beginning.
- * gcc.noncompile/921017-1.c: Deleted obsolete test.
- * gcc.noncompile/noncompile.exp: Remove code for deleted test.
- Don't expect va-arg-1.c to fail. Correct expected output for
- 920928-1.c.
- * gcc.wendy/d.c, msgs.c, prolog.c, subs.c, z.c: Deleted.
- * gcc.wendy/hbm4.c: Correct typo.
- * gcc.wendy/tad1.c, tad2.c: Correct expected output.
-
-Mon Mar 28 13:29:37 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * lib/gcc.exp (gcc_[ce]{pass,fail}): Remove output/executable argument.
- * gcc.wendy/wendy.exp (wendy_try): Remove `output' argument of
- gcc_[ce]{pass,fail}. Explicitly remove executable if test passes.
- * lib/c-torture.exp (c-torture-compile): Ditto.
-
- Reduce volume of output (remove all the -I's and such).
- * lib/c-torture.exp (c-torture-compile): New argument OPTION.
- Call gcc_cpass, gcc_cfail.
- (c-torture): Pass testing option to c-torture-compile.
-
-Mon Mar 21 12:40:33 1994 Doug Evans (dje@cygnus.com)
-
- Bring patches over from progressive.
- * config/default.exp: Exit remote shell cleanly.
- (g++_exit, g++_start): Add default versions.
- * config/sim.exp (gcc_load): Use perror, not error.
-
-Sun Mar 20 12:05:32 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * lib/gcc.exp: Don't set CFLAGS if CC not set. It clobbers the value
- set in site.exp.
-
-Mon Mar 14 19:30:28 1994 Doug Evans (dje@cygnus.com)
-
- * gcc.wendy/wendy.exp (wendy_first_line): New proc to fetch
- DEJAGNU_OUTPUT and DEJAGNU_CFLAGS.
- (wendy_try): New proc to run testcase.
- (main loop): Call 'em.
- * gcc.wendy/*.c: Clean up pass to correct expected output.
-
- * lib/gcc.exp: Minor cleanup work.
- (gcc_cpass, gcc_cfail, gcc_epass, gcc_efail): New procs.
-
-Wed Mar 9 15:22:54 1994 Doug Evans (dje@canuck.cygnus.com)
-
- * config/sim.exp (gcc_load): Document return codes better.
- Don't pass -v to simulator.
-
-Thu Feb 24 07:15:18 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
-
- * gcc.special/920717-x.c: Fix typo.
- * gcc.special/special.exp (920717-x.c): Use $srcdir/$subdir to
- get at sources.
-
- * lib/mike-gcc.exp: Fix typo.
-
-Tue Feb 15 15:41:47 1994 Rob Savoye (rob@darkstar.cygnus.com)
-
- * lib/gcc.exp: Minor cleanup work. Find the proper gcc or g++
- binary to use, transform the name.
- * config/*.exp: rename everything. Nuke any g++ specific files,
- it's now a special case of gcc that requires no special support.
- Add a default.exp for unsupported targets.
-
-Fri Feb 11 12:59:54 1994 Rob Savoye (rob@poseidon.cygnus.com)
-
- * g++.jason/report.exp, g++.old-deja/old-deja.exp,
- lib/old-dejagnu.exp: Fix a few patterns to work with the new
- version of Tcl.
-
-Wed Feb 9 21:35:47 1994 Rob Savoye (rob@darkstar.cygnus.com)
-
- * lib/c-torture.exp: Made "file prefix*never used a pass, rather
- than a warning.
-
-Sun Feb 6 16:52:13 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
-
- * lib/mike-gcc.exp: Add in recent changes from mike-g++.exp.
-
-Mon Jan 3 17:28:25 1994 Jim Wilson (wilson@sphagnum.cygnus.com)
-
- * gcc.execute/execute.exp: Combine opt_list and foption_list into
- option_list. Compile every file with only 4/6 option choices
- (same as C torture) instead of with 12/18 different option
- choices.
- * lib/c-torture.exp: Likewise.
-
- * lib/gcc.exp: Set LIBS, CFLAGS, and LDFLAGS to empty strings if
- not already set.
-
-Thu Dec 30 17:17:07 1993 Mike Stump (mrs@rtl.cygnus.com)
-
- * lib/old-deja.exp: Add `excess errors test fails' error, now one
- can put an XFAIL *-*-* on excess errors.
-
-Sun Dec 19 21:45:34 1993 Jeffrey A. Law (law@snake.cs.utah.edu
-
- * g++.law: Add more tests derived from g++-bugs snapshots.
-
- * g++.law/init11.{c,exp}: Delete test. Brendan sez it's
- equivalent to g++.law/init9.
-
- * lib/mike-gcc.exp (postbase): Delete the .o file after we've
- compiled it, and the a.out file after we've run it.
-
-Fri Dec 17 11:29:56 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
-
- * lib/mike-g++.exp (postbase): Delete the .o file after we've
- compiled it, and the a.out file after we've run it.
-
-Fri Dec 17 10:18:16 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
-
- * g++.law/*.exp: Avoid losing arguments added via "append" commands.
-
-Wed Dec 15 20:36:40 1993 Rob Savoye (rob@darkstar.cygnus.com)
-
- * lib/gcc.exp, lib/g++.exp: Use catch rather than exec to get the
- version number.
-
-Sun Dec 12 21:10:04 1993 Jeffrey A. Law (law@snake.cs.utah.edu)
-
- * g++.law: New directory of g++ tests derived from the g++-bugs
- snapshots.
-
-Thu Dec 09 16:50:41 1993 Jeffrey Wheat (cassidy@cygnus.com)
-
- * gcc.compile: initbug1.c initbug1.exp testcase added
-
-Mon Dec 06 11:09:52 1993 Jeffrey Wheat (cassidy@cygnus.com)
-
- * gcc.dje/sizetype-1.exp, dje.exp: minor clean ups
- * gcc.execute/execute.exp: minor cleanups. added gcc_stat calls. added
- fixes submitted by Jeff Law (law@cs.utah.edu)
- * gcc.noncompile/noncompile.exp, lib/mike-gcc.exp: new files from
- Jeff Law (law@cs.utah.edu)
-
-
-Tue Nov 30 16:34:07 1993 Mike Stump (mrs@cygnus.com)
-
- * config/unix-g++.exp: Follow the gcc way of doing things.
- * g++.old-deja/old-deja.exp: Minor updates.
- * lib/g++.exp: New file, follow the gcc way of doing things.
- * lib/old-dejagnu.exp: Minor updates.
- * lib/mike-g++.exp: Always unset errorInfo.
-
-Sat Nov 6 11:34:51 1993 Mike Stump (mrs@cygnus.com)
-
- * lib/gcc.exp: Fix some errors with the below change, CC and
- CFLAGS should be global when setting, not local.
-
-Wed Nov 3 11:16:26 1993 Rob Savoye (rob@darkstar.cygnus.com)
-
- * lib/gcc.exp: Transform tool name.
-
-Wed Oct 27 23:57:29 1993 Jeffrey Wheat (cassidy@cygnus.com)
-
- * gcc.*/*.exp: Fixd some de-stablizing changes. Sorry.
-
-Wed Oct 27 14:45:50 1993 Jeffrey Wheat (cassidy@cygnus.com)
-
- * lib/gcc.exp: change gcc_done to gcc_stat
-
-Wed Oct 27 09:57:51 1993 Jeffrey Wheat (cassidy@cygnus.com)
-
- * Upgraded gcc testsuite to c-torture version 1.25
-
-Sun Oct 24 10:58:03 1993 Jeffrey Wheat (cassidy@cygnus.com)
-
- * lib/gcc.exp: added reporting code. Changed verbose compile message.
- * lib/c-torture: added hooks for new reporting code.
-
-Thu Oct 21 18:45:32 1993 Jeffrey Wheat (cassidy@cygnus.com)
-
- * config/sh-gcc.exp: check if sh-sim exists in the path
-
-Mon Oct 18 11:13:22 1993 Jeffrey Wheat (cassidy@cygnus.com)
-
- * gcc.code_quality/code_quality.exp: Initial changes for new logic.
- * gcc.compile/compile.exp: Initial changes for new logic.
- * gcc.dje/dje.exp, sizetype-1.exp: Initial changes for new logic.
- * gcc.failure/failure.exp: Initial changes for new logic.
- * gcc.ieee/ieee.exp: Initial changes for new logic.
- * gcc.misc-tests/misc.exp: Initial changes for new logic.
- * gcc.noncompile/non_compile.exp: Initial changes for new logic.
- * gcc.unsorted/unsorted.exp: Initial changes for new logic.
- * lib/c-torture.exp: Initial changes for new logic.
- * lib/gcc.exp: Initial changes for new logic.
-
-Fri Oct 15 00:19:42 1993 Mike Stump (mrs@cygnus.com)
-
- * lib/mike-g++.exp, lib/old-dejagnu.exp: Make the message not
- depend upon failure or success. Fully qualify names in failure
- and success messages. Always remove a.out before starting
- compile, just in case. Pay more attention to error text output by
- the compiler. Handle testcases with no known past errors just
- like all others, so that things are uniform. Other miscellaneous
- improvements.
-
-Wed Oct 13 15:04:51 1993 Jeffrey Wheat (cassidy@cygnus.com)
-
- * gcc.cpp: new directory for cpp tests
-
-Mon Oct 4 09:03:41 1993 Jeffrey Wheat (cassidy@cygnus.com)
-
- * lib/chill.exp: Code reformatted, removed unused code.
- * config/unix-chill.exp: Code reformatted, removed unused code.
- * chill.execute/execute.exp: Code reformatted, removed unused code.
- * chill.execute/oe/orient.exp: Code reformatted, removed unused code.
-
-Mon Oct 4 06:19:26 1993 Ian Lance Taylor (ian@cygnus.com)
-
- * config/mips-gcc.exp, config/mips-g++.exp: New files. Execution
- routines not written.
-
-Mon Sep 27 21:07:44 1993 Rob Savoye (rob@darkstar.cygnus.com)
-
- * config/bug-gcc.exp: Use new procs from bug.exp.
-
-Tue Sep 21 18:21:12 1993 Rob Savoye (rob@darkstar.cygnus.com)
-
- * config/vx-gcc.exp: Use new vxworks_ld proc, so files get loaded
- via ftp, rather than depending on NFS.
- * config/vx-gcc.exp: Use new vxworks_spawn proc to execute test
- case.
-
-Thu Sep 9 23:09:15 1993 Rob Savoye (rob@darkstar.cygnus.com)
-
- * config/bug-gcc.exp: Use new download proc.
-
-Tue Sep 14 19:23:58 1993 Jeffrey Wheat (cassidy at deneb.cygnus.com)
-
- * chill.execute/execute.exp: cleanups, handles errors better
- * chill.compile/compile.exp: rewrite, based on execute.exp
- * chill.noncompile/noncompile.exp: rewrite, based on execute.exp
- * lib/chill.exp: major changes to diff proc and compile and link
- procs. added chill_fail and chill_pass wrappers to pass and
- fail. added more comments, and handle error codes better.
- Added a hack to capture stderr from exec, so noncompile tests
- can work.
-
-Sat Sep 11 15:30:10 1993 Jeffrey Wheat (cassidy@cygnus.com)
-
- * chill.execute/execute.exp: rewrite of testsuite driver
- * lib/chill.exp: rewrite of testsuite driver
- * config/unix-chill.exp: rewrite of testsuite driver
-
-Wed Aug 25 14:11:13 1993 Bill Cox (bill@rtl.cygnus.com)
-
- In chill.execute:
- * iexpr.ch: Standardize uppercase.
- * tuples.dat: Standardize uppercase.
- * vary.ch: standardize. Correct varying string assignments.
- * vary.dat: Add new output lines.
-
-Tue Aug 24 13:45:49 1993 Bill Cox (bill@rtl.cygnus.com)
-
- In chill.execute:
- * chprintf.ch: Standardize use of uppercase.
- * tuples.ch: Standardize and turn arr2 into a DCL,
- rather than a SYN.
- * pinits.ch: Standardize.
-
-Mon Aug 23 17:26:58 1993 Per Bothner (bothner@kalessin.cygnus.com)
-
- * rts.c: Get malloc() from <stdlib.h>, not <malloc.h>.
- * Makefil: Renamed to Makefile.in.
- * configure.in: New.
-
-Mon Aug 23 14:24:13 1993 Bill Cox (bill@rtl.cygnus.com)
-
- In chill.execute:
- * .cvsignore: Add result/output files.
- * Makefile: Fix up variables at start. Use MFLAGS
- everywhere. Correct bool_loc, built_ins entries.
- Add entry for vary1.ch.
- * bitarray.ch: Standardize upper-case usage.
- * bitexpr.ch: Standardize, add output of b1.
- * params.ch: Use arrayt in along PROC parameters, to
- avoid novelty problems.
- * sets.ch: Tiny cleanup.
- * vary1.ch: Re-indent.
-
-Tue Aug 17 15:42:07 1993 Bill Cox (bill@rtl.cygnus.com)
-
- * Add PR-related files to Makefiles, .cvsignore files, etc.
-
-Mon Aug 2 15:46:05 PDT 1993 Jeff Wheat (cassidy@cygnus.com)
-
- * gcc.unsorted: flow.c and loop.c - renamed to avoid conflicts
- with compiler objects. New names are test-flow.c and test-loop.c
-
-Tue Jul 27 10:08:08 PDT 1993 Jeff Wheat (cassidy@cygnus.com)
-
- * Upgraded c-torture tests from 1.19 to 1.20
-
- * new files:
- * gcc.compile: 930609-1.c 930611-1.c 930618-1.c 930621-1.c
- * gcc.compile: 930623-1.c 930623-2.c
- * gcc.noncompile: 930622-1.c 930622-2.c
- * gcc.failure: 920411-1.c 920627-2.c
- * gcc.ieee: 920518-1.c 920810-1.c 930529-1.c
-
-Tue Jul 20 15:19:44 PDT 1993 Jeff Wheat (cassidy@cygnus.com)
-
- * chill.compile/compile.exp chill.execute/execute.exp lib/chill.exp
- More changes to get testsuite working properly. Needs more work.
- Added some support for POSIX IEEE Std 1003.3-1991 error messages.
-
-Mon Jul 19 18:40:31 PDT 1993 Jeff Wheat (cassidy@cygnus.com)
-
- * chill.compile/compile.exp chill.execute/execute.exp lib/chill.exp
- More changes to get testsuite working properly. Needs more work.
-
-Tue Jul 13 18:38:56 PDT 1993 Jeff Wheat (cassidy@cygnus.com)
-
- * chill.compile/compile.exp: Added for Dejagnu support
- * chill.execute/execute.exp: Added for Dejagnu support
- * lib/chill.exp config/unix-chill.exp : Added for Dejagnu support
-
-Sat Jun 19 07:13:05 1993 Bill Cox (bill@rtl.cygnus.com)
-
- This should complete moving the CHILL test files.
- * chill.noncompile(.cvsignore printf.grt
- in-printf.grt chprintf.grt chprintf.ch):
- Added test-support files.
- (Makefile): Modified further.
- * chill.compile (emptymod.ch gdbme.ch neg_range.ch
- signal.ch): Added test files.
- * chill.execute (.cvsignore printf.grt printr.c
- in-printf.grt rts.c chprintf.grt rts.h): Added
- test-support files.
- (Makefile): More corrections.
-
-Fri Jun 18 23:40:54 1993 Bill Cox (bill@rtl.cygnus.com)
-
- * chill.compile, chill.execute, chill.nocompile: Add CHILL
- test cases, ready for DejaGnu.
-
-Thu Jun 17 19:14:40 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
-
- * Upgraded c-torture tests from 1.18 to 1.19
-
- * gcc.compile: added test(s):
- 930607-1.c
- * gcc.execute: added test(s):
- 930603-1.c 930603-2.c 930603-3.c 930608-1.c conversion.c inst-check.c
-
- * added new subdirectory for misc tests: gcc.misc-tests
- * gcc.misc-test(s): added tests:
- inst-check.c test-consts.c test-ior.c test-switch.c
-
-Wed Jun 9 16:53:26 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
-
- * lib/mike-g++.exp: Load `./a.out', not `a.out'.
-
-Mon Jun 7 16:18:40 1993 Ian Lance Taylor (ian@cygnus.com)
-
- * g++.old-deja/old-deja.exp: Don't delete all the .o files.
-
-Thu Jun 3 13:13:36 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
-
- * Upgraded c-torture tests from 1.17 to 1.18
-
-Wed Jun 2 19:02:40 MDT 1993 Jeffrey Wheat (cassidy@cygnus.com)
-
- * Upgraded c-torture tests from 1.12 to 1.17
-
-Fri Apr 30 09:38:41 1993 Mike Werner (mtw@deneb.cygnus.com)
-
- * lib/old-dejagnu.exp:
- Fixed handling of XFAIL target triplets to correctly
- recognize wildcard characters. Removed code that
- appended a unique id tag to the end of the file name
- printed out by the result of the testcases within a
- given test file.
-
-Thu Apr 29 19:06:29 1993 Mike Werner (mtw@deneb.cygnus.com)
-
- * lib/old-dejagnu.exp:
- Reworked expected failure handling to trigger off of XFAIL
- keyword in keyphrase embeded in testcase source code. The
- XFAIL keyword must be at the end of the keyphrase line. It
- may optionally be followed by one or more target triplets.
- It has just occured that the handling of wildcards in the
- target triplet may not be correct.
-
-Fri Apr 23 13:16:20 1993 Mike Werner (mtw@deneb.cygnus.com)
-
- * g++.old-deja/tests:
- Moved all subdirectories up one level into g++.old-deja .
-
- * lib/old-dejagnu.exp:
- Fixed problem with CXXFLAGS not being properly reset, and being
- corrupted with extraneous "-c" compiler option. This was
- causing binaries to not be generated for test that needed them.
- Modified strings passed to "pass" and "fail" so that individual
- tests from the same test file would be distinguished by an
- identifier appended to the test file name in the summary logs;
- this corrected a problem with erroneous diff logs. Added code
- to search testcases for expected fail and unexpected pass keywords.
-
-Tue Apr 20 18:27:58 1993 Rob Savoye (rob at darkstar.cygnus.com)
-
- * lib/c-torture.exp: Ignore "file path prefix*unused" message.
-
-Thu Apr 15 11:01:59 1993 Mike Werner (mtw@deneb.cygnus.com)
-
- * g++.old-deja/tests/g++.sun/g++.frag/1045608.C:
- Removed extraneous text from end of "Special g++ Options"
- keyphrase.
-
- * lib/old-dejagnu.exp: Added pattern matching to look for new
- keywords, embedded in testcases comments, which will trigger
- calls to xpass and xfail.
-
-Wed Apr 14 14:28:01 1993 Mike Werner (mtw@deneb.cygnus.com)
-
- * lib/old-dejagnu.exp: Cleaned up pattern matching for keyphrase
- comments embedded in the testcases, especially the one looking for
- special compiler options, as well as the pattern matching for the
- compiler output again.
-
-Mon Apr 12 15:15:37 1993 Mike Werner (mtw@deneb.cygnus.com)
-
- * lib/old-dejagnu.exp: Do a proper check of the return value for
- execute tests. Fixed several problems with the pattern matching
- of the compiler output which gave erroneous test results.
- Changed several of the test result messages to be more descriptive.
- * config/unix-g++.exp: Proc g++_load now actually works and
- executes the tests passed to it and returns a usable return
- value.
-
-Sun Apr 11 17:22:37 1993 Rob Savoye (rob at darkstar.cygnus.com)
-
- * lib/gcc.exp: Exits gracefully if $CC is bogus.
-
-Fri Apr 9 09:41:59 1993 Mike Werner (mtw@deneb.cygnus.com)
-
- * lib/old-dejagnu.exp , g++.old-deja/old-deja.exp:
- Modified both files to properly execute the old style
- dejagnu tests. The previous versions of these files were
- experimental and did not function anything near correctly.
-
-Mon Apr 5 21:08:24 1993 Rob Savoye (rob@cygnus.com)
-
- * Removed all Makefile.in and configure.in files. No configuration
- needed now.
-
-Fri Apr 2 12:15:17 1993 Mike Werner (mtw@deneb.cygnus.com)
-
- * lib: relocated old-dejagnu.exp from devo/dejagnu/lib
-
-Sun Mar 28 11:17:48 1993 Ken Raeburn (raeburn@kr-pc.cygnus.com)
-
- * gcc.compile/configure.in, gcc.unsorted/configure.in,
- gcc.special/configure.in, gcc.noncompile/configure.in,
- gcc.execute/configure.in, gcc.code_quality/configure.in,
- g++.other/configure.in, g++.old-deja/configure.in,
- g++.niklas/configure.in, g++.mike/configure.in: Remove extra quote
- in srcname setting.
-
-Thu Mar 25 20:07:55 1993 Rob Savoye (rob at darkstar.cygnus.com)
-
- * lib/udi.exp: Fixed mondfe and mondfe_download.
- * config/udi-gcc.exp: Fixed misc bugs, works with expect 4.x.
- * config/abug-gcc.exp: Fixed misc bugs, works with expect 4.x.
-
-Thu Mar 25 13:06:41 1993 Ian Lance Taylor (ian@cygnus.com)
-
- * config/udi-gdb.exp: Check $shell_id after connecting to target.
- (gdb_exit): Don't remove *_soc files.
-
-Mon Mar 22 14:28:46 1993 Ian Lance Taylor (ian@cygnus.com)
-
- * lib/c-torture.exp: Don't look for main; instead always use -w
- -c. This is how the c-torture tests work. Remove the object
- file if the compilation succeeds.
- * gcc.execute/execute.exp: Remove executable if test passes.
- * gcc.noncompile/noncompile.exp: Every test is an expected
- failure.
- * gcc.special/special.exp: Added tests from c-torture 1.11,
- corrected use of existing test.
- * gcc.execute/920302-1.c, gcc.execute/920501-8.c,
- gcc.execute/920625-1.c: Updated to c-torture 1.11.
- * gcc.compile/921103-1.c, gcc.compile/921109-1.c,
- gcc.compile/921109-2.c, gcc.compile/921109-3.c,
- gcc.compile/921111-1.c, gcc.compile/921116-2.c,
- gcc.compile/921118-1.c, gcc.compile/921126-1.c,
- gcc.compile/921202-1.c, gcc.compile/921202-2.c,
- gcc.compile/921203-1.c, gcc.compile/921203-2.c,
- gcc.compile/921206-1.c, gcc.execute/921029-1.c,
- gcc.execute/921104-1.c, gcc.execute/921110-1.c,
- gcc.execute/921112-1.c, gcc.execute/921113-1.c,
- gcc.execute/921117-1.c, gcc.execute/921123-1.c,
- gcc.execute/921123-2.c, gcc.execute/921124-1.c,
- gcc.execute/921202-1.c, gcc.execute/921202-2.c,
- gcc.execute/921204-1.c, gcc.execute/921207-1.c,
- gcc.execute/921208-1.c, gcc.execute/921208-2.c,
- gcc.execute/921215-1.c, gcc.execute/921218-1.c,
- gcc.execute/921218-2.c, gcc.noncompile/921102-1.c,
- gcc.noncompile/921116-1.c, gcc.unsorted/x.c: Added from
- c-torture 1.11.
- * gcc.noncompile/921021-1.c, gcc.unsorted/x11bug.c: Removed to
- correspond to c-torture 1.11.
-
- * New file.
-
diff --git a/gcc/testsuite/README b/gcc/testsuite/README
deleted file mode 100644
index 7d06473..0000000
--- a/gcc/testsuite/README
+++ /dev/null
@@ -1,50 +0,0 @@
-This is a collection of tests for the C and C++ frontends of EGCS. For
-further information please check README.gcc and README.g++, though the
-latter may not be up-to-date any more.
-
-The driver that runs this testsuite is called DejaGnu and you will
-need a current DejaGnu snapshot, which is available from
-ftp://egcs.cygnus.com/pub/egcs/infrastructure, for example.
-
-Most of these tests were originally developed and/or collected by
-Cygnus Solutions, but these days many are being added by the EGCS
-developers.
-
-These tests are included "as is". If any of them fails, do not report
-a bug. Bug reports for DejaGnu can go to bug-dejagnu@prep.ai.mit.edu.
-Discussion and comments about this testsuite should be sent to
-gcc@gcc.gnu.org; additions and changes to should go to sent to
-gcc-patches@gcc.gnu.org.
-
-The entire testsuite is invoked by `make check` at the top level of
-the EGCS tree. `make check-g++` runs the C++ testsuite only.
-
-
-STRUCTURE OF THE TESTSUITE
-
-Almost all C++ tests reside in subdirectories of g++.old-deja, based on
-the following structure:
-
- g++.benjamin Tests by Benjamin Koz
- g++.bob
- g++.brendan Tests by Brendan Kehoe
- g++.bugs
- g++.eh Tests for exception handling
- g++.ext Tests for g++ extensions
- g++.gb Tests by Gerald Baumgartner
- g++.jason Tests by Jason Merill
- g++.jeff Tests by Jeffrey A Law
- g++.martin Tests by Martin v. Löwis
- g++.mike Tests by Mike Stump
- g++.niklas Tests by Niklas Hallqvist
- g++.ns Tests for namespaces
- g++.other
- g++.pt Tests for templates
- g++.rfg
- g++.robertl Tests from gcc-bugs@gcc.gnu.org, gathered by Robert Lipe
-
-g++.old-deja uses a fixed driver for all g++ tests based on the old
-DejaGnu drivers. But just because its old, doesn't mean its redundant!
-Tests that want to use the normal dg.exp driver can be put in g++.dg instead.
-This may be required for platform-specific tests, or tests with other
-special requirements.
diff --git a/gcc/testsuite/README.g++ b/gcc/testsuite/README.g++
deleted file mode 100644
index 7ded0fd..0000000
--- a/gcc/testsuite/README.g++
+++ /dev/null
@@ -1,33 +0,0 @@
-Here are some random last minute notes by this file's original maintainer,
-Mike Stump <mrs@cygnus.com>:
-
-> and the command
-
-> runtest --tool g++ --srcdir ./testsuite
-
-> doesn't work. I got it to work by explicitly setting CXX and CXXFLAGS
-> on the command line, e.g.
-
-> runtest --tool g++ --srcdir ./testsuite CXX=g++ CXXFLAGS=""
-
-site.exp updated to have right CXXFLAGS and CXX, but not at the FSF yet.
-
-
- To run the tests, first change to the gcc-2.7.1 directory, then type:
-
- runtest --tool g++ --srcdir ./testsuite
-
-Here's a brief explanation.
-
-runtest - Is the name used to invoke DejaGnu. If DejaGnu is not
- install this will be the relative path name for runtest.
-
---tool - This tells DejaGnu which tool you are testing. It is
- mainly used to find the testsuite directories for a
- particular tool when several testsuites are in the
- same directory. (like the gcc and g++ testsuites)
-
---srcdir - This points to the top level of the directory
- containing the sources of the testsuite. This is
- ./testsuite if you are in the directory that has the
- testsuite directory.
diff --git a/gcc/testsuite/README.gcc b/gcc/testsuite/README.gcc
deleted file mode 100644
index 17904bc..0000000
--- a/gcc/testsuite/README.gcc
+++ /dev/null
@@ -1,87 +0,0 @@
-This file contains a list of notes for those writing testcases and those
-writing expect scripts. At present, they're in random order.
-
-Verbosity Levels
-
-- each level adds verbosity so level 2 prints all level 1 and level 2 stuff.
-
-1) Print a one-liner indicating the testcase being run (and maybe special
- compiler options).
-
-2) Print compiler and program invocation including arguments and their output.
- Proc's gcc_load and gcc_start handle the latter two.
-
-3) Print detailed testcase analysis like "Looking for pattern ...", etc.
-
-4) Maximum verbosity. Print anything else of interest.
-
-send_log conventions
-
-Various messages are stored in gcc.log by the testing framework and we
-try to augment them with some of our own. The format of the framework
-messages are:
-
-PASS: blah blah ...
-FAIL: blah blah ...
-
-so we use
-
-XXXX: blah blah ...
-
-Current messages are:
-
-EXEC: program being executed (so compiler path and args are recorded)
-STAT: intermediate pass/fail statistics
-
-Test scripts must ignore the compiler messages "path prefix never used"
-and "linker input file unused". Don't let their appearance cause a testcase
-to fail. See lib/dg.exp for the exact regsub to use.
-
-If you're unclear about which directory a testcase should be installed in,
-ask gcc-local.
-
-Have the text of a fail message be the same as that for pass.
-IE: have
-
- if ...success...
- pass "pr 1234"
- else
- fail "pr 1234"
-
-not
-
- if ...success...
- pass "pr 1234 passed"
- else
- fail "pr 1234 failed"
-
-
-This lets test-tool (which drives the nightly tests) do a better job
-at tracking which tests have digressed or been fixed.
-
-DO NOT PUT NON-PORTABLE TESTCASES IN gcc.c-torture.
-
-ANY TARGET SPECIFIC TESTCASE MUST HAVE APPROPRIATE CODE TO PREVENT IT FROM
-CAUSING A `FAILURE' ON UNSUPPORTED PLATFORMS.
-
-The "torture" tests are meant to be generic tests that can run on any
-target. So you have to be careful about endianness, assumptions about
-sizes of datatypes, etc etc.
-
-For tests that merely need to compile, put them in the "compile" directory.
-
-For tests which should give an error, put them in the "noncompile" directory
-and update noncompile.exp appropriately (see examples in noncompile.exp).
-
-For IEEE FP specific tests, put them in execute/ieee.
-
-For execution tests, put them in execute.
-
-Always use abort() for runtime failures, and exit(0) for success.
-The testing harness is set up to watch for these and do something appropriate
-(when necessary) for target boards.
-
-If a test does not fit into the torture framework, use the dg framework.
-
-
-
diff --git a/gcc/testsuite/config/default.exp b/gcc/testsuite/config/default.exp
deleted file mode 100644
index 9ae55bc..0000000
--- a/gcc/testsuite/config/default.exp
+++ /dev/null
@@ -1,20 +0,0 @@
-# Copyright (C) 1997 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# Please email any bugs, comments, and/or additions to this file to:
-# bug-gcc@prep.ai.mit.edu
-
-load_lib "standard.exp"
diff --git a/gcc/testsuite/g++.dg/special/conpr-1.C b/gcc/testsuite/g++.dg/special/conpr-1.C
deleted file mode 100644
index 8ab6bfe..0000000
--- a/gcc/testsuite/g++.dg/special/conpr-1.C
+++ /dev/null
@@ -1,18 +0,0 @@
-/* { dg-do run } */
-
-class foo_t {
- int x;
-public:
- foo_t(void) { x=1; }
- int get(void) { return x; }
-};
-
-static foo_t foo __attribute__((init_priority(5000)));
-
-int main(void) {
-
- if (foo.get())
- exit(0);
- else
- abort();
-}
diff --git a/gcc/testsuite/g++.dg/special/conpr-2.C b/gcc/testsuite/g++.dg/special/conpr-2.C
deleted file mode 100644
index 07ba8ab..0000000
--- a/gcc/testsuite/g++.dg/special/conpr-2.C
+++ /dev/null
@@ -1,20 +0,0 @@
-/* { dg-do run } */
-
-class foo_t {
- int x;
- static int count;
-public:
- foo_t(void) { x=++count; }
- int get(void) { return x; }
-};
-
-int foo_t::count;
-
-extern foo_t foo1, foo2;
-
-int main(void) {
-
- if ( (foo1.get() != 2) || (foo2.get() != 1) )
- abort();
- exit(0);
-}
diff --git a/gcc/testsuite/g++.dg/special/conpr-2a.C b/gcc/testsuite/g++.dg/special/conpr-2a.C
deleted file mode 100644
index 69fb7d6..0000000
--- a/gcc/testsuite/g++.dg/special/conpr-2a.C
+++ /dev/null
@@ -1,12 +0,0 @@
-/* { dg-do run } */
-
-class foo_t {
- int x;
- static int count;
-public:
- foo_t(void) { x=++count; }
- int get(void) { return x; }
-};
-
-foo_t foo1 __attribute__((init_priority(6000)));
-foo_t foo2 __attribute__((init_priority(5000)));
diff --git a/gcc/testsuite/g++.dg/special/conpr-3.C b/gcc/testsuite/g++.dg/special/conpr-3.C
deleted file mode 100644
index 07ba8ab..0000000
--- a/gcc/testsuite/g++.dg/special/conpr-3.C
+++ /dev/null
@@ -1,20 +0,0 @@
-/* { dg-do run } */
-
-class foo_t {
- int x;
- static int count;
-public:
- foo_t(void) { x=++count; }
- int get(void) { return x; }
-};
-
-int foo_t::count;
-
-extern foo_t foo1, foo2;
-
-int main(void) {
-
- if ( (foo1.get() != 2) || (foo2.get() != 1) )
- abort();
- exit(0);
-}
diff --git a/gcc/testsuite/g++.dg/special/conpr-3a.C b/gcc/testsuite/g++.dg/special/conpr-3a.C
deleted file mode 100644
index b237bb5..0000000
--- a/gcc/testsuite/g++.dg/special/conpr-3a.C
+++ /dev/null
@@ -1,11 +0,0 @@
-/* { dg-do run } */
-
-class foo_t {
- int x;
- static int count;
-public:
- foo_t(void) { x=++count; }
- int get(void) { return x; }
-};
-
-foo_t foo1 __attribute__((init_priority(6000)));
diff --git a/gcc/testsuite/g++.dg/special/conpr-3b.C b/gcc/testsuite/g++.dg/special/conpr-3b.C
deleted file mode 100644
index b5efa0c..0000000
--- a/gcc/testsuite/g++.dg/special/conpr-3b.C
+++ /dev/null
@@ -1,11 +0,0 @@
-/* { dg-do run } */
-
-class foo_t {
- int x;
- static int count;
-public:
- foo_t(void) { x=++count; }
- int get(void) { return x; }
-};
-
-foo_t foo2 __attribute__((init_priority(5000)));
diff --git a/gcc/testsuite/g++.dg/special/ecos.exp b/gcc/testsuite/g++.dg/special/ecos.exp
deleted file mode 100644
index 34a54b7..0000000
--- a/gcc/testsuite/g++.dg/special/ecos.exp
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright (C) 1999 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-# Please email any bugs, comments, and/or additions to this file to:
-# jlarmour@cygnus.co.uk
-
-# This file was written by Jonathan Larmour (jlarmour@cygnus.co.uk).
-
-# G++ testsuite that uses the `dg.exp' driver.
-
-# Load support procs.
-load_lib g++-dg.exp
-
-###########
-# conpr-1.C
-###########
-
-dg-init
-dg-runtest "$srcdir/$subdir/conpr-1.C" "-finit-priority" ""
-dg-finish
-
-
-###########
-# conpr-2.C
-###########
-
-dg-init
-
-set lines [g++_target_compile "$srcdir/$subdir/conpr-2a.C" "conpr-2a.o" object "additional_flags=-finit-priority"]
-if ![string match "" $lines] then {
- fail "conpr-2a.o"
-} else {
- dg-runtest "$srcdir/$subdir/conpr-2.C" "conpr-2a.o" "-finit-priority"
- file delete conpr-2a.o
-}
-dg-finish
-
-
-###########
-# conpr-3.C
-###########
-
-dg-init
-
-set lines [g++_target_compile "$srcdir/$subdir/conpr-3a.C" "conpr-3a.o" object "additional_flags=-finit-priority"]
-if ![string match "" $lines] then {
- fail "conpr-3a.o"
-} else {
- set lines [g++_target_compile "$srcdir/$subdir/conpr-3b.C" "conpr-3b.o" object "additional_flags=-finit-priority"]
- if ![string match "" $lines] then {
- fail "conpr-3b.o"
- } else {
- # run it with objects both ways around!
- dg-runtest "$srcdir/$subdir/conpr-3.C" "conpr-3a.o conpr-3b.o" "-finit-priority"
- dg-runtest "$srcdir/$subdir/conpr-3.C" "conpr-3b.o conpr-3a.o" "-finit-priority"
- file delete conpr-3a.o conpr-3b.o
- }
-}
-dg-finish
-
-
-### EOF ecos.exp
diff --git a/gcc/testsuite/g++.old-deja/Makefile.in b/gcc/testsuite/g++.old-deja/Makefile.in
deleted file mode 100644
index e6209db..0000000
--- a/gcc/testsuite/g++.old-deja/Makefile.in
+++ /dev/null
@@ -1,12 +0,0 @@
-#### host, target, and site specific Makefile frags come in here.
-
-srcdir = .
-
-# Nothing to do...
-all:
-
-clean:
- -rm -f *.o *.diff *~ *.bad core *.x
-
-distclean: clean
- -rm -f Makefile config.status
diff --git a/gcc/testsuite/g++.old-deja/configure.in b/gcc/testsuite/g++.old-deja/configure.in
deleted file mode 100644
index c6cacc6..0000000
--- a/gcc/testsuite/g++.old-deja/configure.in
+++ /dev/null
@@ -1,15 +0,0 @@
-# This file is a shell script fragment that supplies the information
-# necessary to tailor a template configure script into the configure
-# script appropriate for this directory. For more information, check
-# any existing configure script.
-
-srctrigger=old-deja.exp
-srcname="DejaGnu"
-
-# per-host:
-
-# per-target:
-
-target_makefile_frag=../config/mt-${target_alias}
-
-# post-target:
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/.cvsignore b/gcc/testsuite/g++.old-deja/g++.benjamin/.cvsignore
deleted file mode 100644
index 7abff1d..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-Makefile
-config.status
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/13478.C b/gcc/testsuite/g++.old-deja/g++.benjamin/13478.C
deleted file mode 100644
index 97256ed..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/13478.C
+++ /dev/null
@@ -1,36 +0,0 @@
-// 981203 bkoz
-// g++/13478
-// Build don't link:
-
-class A {};
-class AData {};
-
-typedef void (A::* hand) (void);
-
-struct hand_table {
- const int data1;
- const hand data2;
-};
-
-class Agent : public A {
-public:
- enum { first = 1, last };
-protected:
- static const hand_table table_1[];
- static const AData table_2;
-private:
- void foo (void);
-};
-
-const hand_table Agent::table_1[] =
-{
- {0, &Agent::table_2},
- {first, &Agent::foo},
- {last, &(hand)Agent::foo} // ERROR - // ERROR -
-}; // ERROR - // ERROR -
-
-
-
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/13523.C b/gcc/testsuite/g++.old-deja/g++.benjamin/13523.C
deleted file mode 100644
index eca71fa..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/13523.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// 981203 bkoz
-// g++/13523
-// Build don't link:
-
-template<typename T> class latin_america;
-
-class peru
-{
- friend class latin_america<int>; // Particular template class friend works
- template<class T> friend class latin_america; // This does not work.
-};
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/13908.C b/gcc/testsuite/g++.old-deja/g++.benjamin/13908.C
deleted file mode 100644
index 403a998..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/13908.C
+++ /dev/null
@@ -1,21 +0,0 @@
-// 981203 bkoz
-// g++/13908
-// Build don't link:
-
-class chile
-{
-public:
-protected:
-private:
-};
-
-typedef void (chile::* pmf) ();
-
-void* foo;
-
-void bar (chile* pobj, pmf pmethod)
-{
- //-edg: expected member name
- //-g++: taking address of bound pointer-to-member expression
- foo = (void*) &(pobj->*pmethod); // ERROR -
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/14139.C b/gcc/testsuite/g++.old-deja/g++.benjamin/14139.C
deleted file mode 100644
index dc0c569..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/14139.C
+++ /dev/null
@@ -1,22 +0,0 @@
-// 981203 bkoz
-// g++/14309
-// test for global functions, mf's, and templatized mf's.
-// Build don't link:
-
-static int fooe_1(void) { return 5; }
-static int fooe_2(int x = fooe_1()) { return x; }
-
-struct antigua {
- static int& foo_1();
- static int foo_2(int& x = antigua::foo_1());
- static int foo_3(int x = fooe_2());
-};
-
-template <typename T>
- struct jamacia {
- static int& foo_1();
- static int foo_2(int& x = antigua::foo_1());
- static int foo_3(int x = fooe_2());
- };
-
-template class jamacia<int>;
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/14664-1.C b/gcc/testsuite/g++.old-deja/g++.benjamin/14664-1.C
deleted file mode 100644
index b5dc839..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/14664-1.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// 981203 bkoz
-// g++/14664 - test
-// Build don't link:
-// Special g++ Options: -fconst-strings
-
-char foo[26];
-
-void bar()
-{
- //-g++: incompatible types in assignment of 'const char[]' to 'char[]'
- //-edg: expression must be a modifiable lvalue
- foo = "0123456789012345678901234"; // ERROR - // ERROR -
-}
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C b/gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C
deleted file mode 100644
index 35dc0b2..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/14664-2.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// 981203 bkoz
-// g++/14664 + test
-// Build don't link:
-// Special g++ Options: -fno-const-strings
-
-char foo[26];
-
-void bar()
-{
- // the addition of the flag "-fno-const-string-literal" reverts to pre-ISO.
- // -g++: ANSI C++ forbids assignment of arrays
- foo = "0123456789012345678901234"; // WARNING -
-}
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/14687.C b/gcc/testsuite/g++.old-deja/g++.benjamin/14687.C
deleted file mode 100644
index c2a9a99..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/14687.C
+++ /dev/null
@@ -1,53 +0,0 @@
-// 981203 bkoz
-// g++/14687
-// excess errors test - XFAIL *-*-*
-
-#include <assert.h>
-unsigned int gtest;
-
-// 7.3.3 the using declaration
-
-// p 3
-struct belieze {
- void f(char);
- void g(char);
- enum E { e };
- union { int x; };
-};
-
-struct dominica: belieze {
- using belieze::f;
- void f(int i) { f('c'); } // calls belieze::f(char)
- void g(int i) { g('c'); } // recursively calls dominca::g(int)
-};
-
-
-// p 6
-namespace A {
- void f(int i) { gtest = 1; }
-}
-
-using A::f; //f is a synonym for A::f, that is for A::f(int)
-
-namespace A {
- void f(char c) { gtest = 3; }
-}
-
-void foo(void) {
- f('a'); //calls f(int), even though A::f(char) exits
- assert (gtest = 1);
-}
-
-void bar(void) {
- using A::f; //f is a synonm for A::f, that is for A::f(int) and A::f(char)
- f('a'); //calls f(char)
- assert (gtest = 3);
-}
-
-int main(void)
-{
- foo();
- bar();
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/15054.C b/gcc/testsuite/g++.old-deja/g++.benjamin/15054.C
deleted file mode 100644
index 65688f7..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/15054.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// 981203 bkoz
-// g++/15054
-// Build don't link:
-// Special g++ Options: -Wno-pointer-arith
-// note that -pedantic also turns on this warning
-
-void cuba(void) {
- void* p;
- p++;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/15071.C b/gcc/testsuite/g++.old-deja/g++.benjamin/15071.C
deleted file mode 100644
index d05ba8c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/15071.C
+++ /dev/null
@@ -1,11 +0,0 @@
-// 981203 bkoz
-// g++/15071
-// gcc invocation fails to link in libstdc++
-
-#include <iostream.h>
-
-int main() {
- cout<<"hi"<<endl;
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/15309-1.C b/gcc/testsuite/g++.old-deja/g++.benjamin/15309-1.C
deleted file mode 100644
index ec83fb4..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/15309-1.C
+++ /dev/null
@@ -1,21 +0,0 @@
-// 981203 bkoz
-// g++/15309
-// Build don't link:
-// Special g++ Options: -Wnon-virtual-dtor -Weffc++
-
-class bahamian {
-public:
- bahamian ();
- ~bahamian ();
-};
-
-class miami : public bahamian
-{
-public:
- miami ();
- ~miami ();
-}; // WARNING - // WARNING -
-
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/15309-2.C b/gcc/testsuite/g++.old-deja/g++.benjamin/15309-2.C
deleted file mode 100644
index 1b483c86..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/15309-2.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// 981203 bkoz
-// g++/15309
-// Build don't link:
-// Special g++ Options: -Wnon-virtual-dtor -Weffc++
-
-class bermuda {
-public:
- virtual int func1(int);
- ~bermuda();
-}; // WARNING - // WARNING -
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/15351-1.C b/gcc/testsuite/g++.old-deja/g++.benjamin/15351-1.C
deleted file mode 100644
index 755c360..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/15351-1.C
+++ /dev/null
@@ -1,27 +0,0 @@
-// 981203 bkoz
-// g++/15351 - test
-// Special g++ Options: -fno-const-strings
-
-#include <assert.h>
-
-bool gtest;
-
-struct acapulco {
- acapulco(const char *) { gtest = false; }
- acapulco(char *) { gtest = true; }
-};
-
-void foo(void)
-{
- acapulco("some such string\n");
-}
-
-int main()
-{
- foo();
- if (!gtest)
- assert (0);
-
- return !gtest;
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/15351-2.C b/gcc/testsuite/g++.old-deja/g++.benjamin/15351-2.C
deleted file mode 100644
index 98ecaac..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/15351-2.C
+++ /dev/null
@@ -1,27 +0,0 @@
-// 981203 bkoz
-// g++/15351 + test
-// Special g++ Options: -fconst-strings
-
-#include <assert.h>
-
-bool gtest;
-
-struct acapulco {
- acapulco(const char *) { gtest = true; }
- acapulco(char *) { gtest = false; }
-};
-
-void foo(void)
-{
- acapulco("some such string\n");
-}
-
-int main()
-{
- foo();
- if (!gtest)
- assert (0);
-
- return !gtest;
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/15756-1.C b/gcc/testsuite/g++.old-deja/g++.benjamin/15756-1.C
deleted file mode 100644
index cc44e6a7..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/15756-1.C
+++ /dev/null
@@ -1,36 +0,0 @@
-// 981203 bkoz
-// g++/15756 test1
-// Build don't link:
-// Special g++ Options: -Wsign-promo
-
-enum e_value { first = 0, next = 30 };
-
-struct sanjuan {
- sanjuan(int value);
- sanjuan(unsigned value);
- friend sanjuan operator&(const sanjuan& x, const sanjuan& y);
- friend int operator!=(const sanjuan& x, const sanjuan& y);
-};
-
-extern void mod_enum(e_value*);
-extern int a;
-
-void foo(void) {
- e_value mod = first;
- mod_enum(&mod);
- if (mod != next)
- ++a;
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/15756-2.C b/gcc/testsuite/g++.old-deja/g++.benjamin/15756-2.C
deleted file mode 100644
index 33c4b23..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/15756-2.C
+++ /dev/null
@@ -1,44 +0,0 @@
-// 981203 bkoz
-// g++/15756 test2
-// Build don't link:
-// Special g++ Options: -Wsign-promo
-// this test may only be valid for 32bit targets at present
-
-enum e_i {
- vali
-}
-enum_int;
-
-enum e_ui {
- valui = 0xF2345678
-}
-enum_uint;
-
-int i;
-unsigned int ui;
-
-struct caracas {
- caracas(int);
- caracas(unsigned int);
- void foo();
-};
-
-int main ()
-{
- caracas obj_ei ( enum_int ); // WARNING - // WARNING -
- caracas obj_eui ( enum_uint ); // WARNING - // WARNING -
- caracas obj_i ( i );
- caracas obj_ui ( ui );
-
- obj_ei.foo();
- obj_eui.foo();
- obj_i.foo();
- obj_ui.foo();
-}
-
-
-
-
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/15799.C b/gcc/testsuite/g++.old-deja/g++.benjamin/15799.C
deleted file mode 100644
index 5309daf..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/15799.C
+++ /dev/null
@@ -1,29 +0,0 @@
-// 981203 bkoz
-// g++/15799 test1
-// Build don't link:
-
-/*
-15799.cpp: In function `void foo()':
-15799.cpp:21: call of overloaded `sanjose({anonymous enum})' is ambiguous
-15799.cpp:13: candidates are: sanjose::sanjose(const sanjose &) <near match>
-15799.cpp:14: sanjose::sanjose(unsigned int)
-*/
-
-typedef char int_8;
-typedef unsigned long uint_32;
-
-class sanjose {
-public:
- sanjose();
- sanjose(const sanjose&);
- sanjose(int_8 value); // ERROR - // ERROR -
- sanjose(uint_32 value); // ERROR - // ERROR -
-};
-
-enum { first, last};
-
-void foo(void) {
- sanjose obj(first); // ERROR - // ERROR -
-};
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/15800-1.C b/gcc/testsuite/g++.old-deja/g++.benjamin/15800-1.C
deleted file mode 100644
index 49aabc9..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/15800-1.C
+++ /dev/null
@@ -1,17 +0,0 @@
-// 981203 bkoz
-// g++/15800 - test
-// Build don't link:
-
-struct panama {
- panama();
- panama(panama &);
- panama& operator=(panama&); // ERROR - // ERROR -
-};
-
-extern panama dig();
-
-void foo() {
- panama obj;
- obj = dig(); // ERROR - // ERROR -
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/15800-2.C b/gcc/testsuite/g++.old-deja/g++.benjamin/15800-2.C
deleted file mode 100644
index 18e299a..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/15800-2.C
+++ /dev/null
@@ -1,18 +0,0 @@
-// 981203 bkoz
-// g++/15800 + test
-// Build don't link:
-
-struct panama {
- panama();
- panama(panama &);
- panama& operator=(panama&);
- panama& getref() { return *this; }
-};
-
-extern panama dig();
-
-void foo() {
- panama obj;
- obj = dig().getref();
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/15822.C b/gcc/testsuite/g++.old-deja/g++.benjamin/15822.C
deleted file mode 100644
index ecd93af..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/15822.C
+++ /dev/null
@@ -1,27 +0,0 @@
-// 981203 bkoz
-// g++/15822
-
-#include <assert.h>
-
-static unsigned int gcount;
-
-struct playahermosa {
- playahermosa() { ++gcount; }
- playahermosa(const playahermosa &) { ++gcount; }
- ~playahermosa() { --gcount; }
-};
-
-struct playacoco {
- playacoco(const playahermosa& = playahermosa()) { } //create a temporary
-};
-
-void foo(playacoco *) { }
-
-int main()
-{
- playacoco bar[2];
- foo(bar);
- assert (gcount == 0);
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/16077.C b/gcc/testsuite/g++.old-deja/g++.benjamin/16077.C
deleted file mode 100644
index f38154e..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/16077.C
+++ /dev/null
@@ -1,28 +0,0 @@
-// 981203 bkoz
-// g++/16077
-// Build don't link:
-
-class nicaragua;
-struct colombia {
- colombia();
- colombia(const colombia &);
- colombia(const nicaragua &);
- colombia &operator= (const colombia&);
-};
-
-struct nicaragua {
-public:
- nicaragua();
- nicaragua(const nicaragua&);
- operator colombia();
-};
-
-void peace(const colombia&); // WARNING - // WARNING -
-
-void foo(nicaragua& b) {
- peace(b); // WARNING - // WARNING -
-}
-
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/16567.C b/gcc/testsuite/g++.old-deja/g++.benjamin/16567.C
deleted file mode 100644
index 8039f5b..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/16567.C
+++ /dev/null
@@ -1,44 +0,0 @@
-// 981203 bkoz
-// g++/16567
-// Build don't link:
-
-typedef bool Bool;
-typedef unsigned char Uint8;
-typedef unsigned short Uint16;
-typedef unsigned int Uint32;
-
-enum e_ms { third = 3, fourth = 4 };
-
-struct bitmask {
- Uint8* anon1;
- Uint32 anon2;
- Uint8 anon3;
- Uint8 here: 2;
- Uint8 anon4: 2;
- Uint8 anon5: 4;
-};
-
-struct control {
- Uint8 foo_1();
-};
-
-inline Uint8 foo_2(bitmask* p) {
- return p->here;
-}
-
-inline Uint8 control::foo_1() {
- return foo_2((bitmask*) this);
-}
-
-void foo(void) {
- control obj;
- control *fp = &obj;
- e_ms result;
-
- result = (e_ms) fp->foo_1; // ERROR - // ERROR -
-}
-
-
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/17922.C b/gcc/testsuite/g++.old-deja/g++.benjamin/17922.C
deleted file mode 100644
index 4717092..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/17922.C
+++ /dev/null
@@ -1,19 +0,0 @@
-// 981204 bkoz
-// g++/17922
-// Build don't link:
-
-class base { };
-
-struct derived : public base {
- derived (const derived&);
- derived (const base&);
-};
-
-class tahiti {
-public:
- static void mf (derived);
-};
-
-void foo (const derived aaa) {
- tahiti::mf(aaa);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/17930.C b/gcc/testsuite/g++.old-deja/g++.benjamin/17930.C
deleted file mode 100644
index 3d7fc65..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/17930.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// 981204 bkoz
-// g++/17930
-// Build don't link:
-
-char const one[] = "test";
-char const two[] = one; // ERROR - // ERROR -
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/18208.C b/gcc/testsuite/g++.old-deja/g++.benjamin/18208.C
deleted file mode 100644
index 7ec1dc0..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/18208.C
+++ /dev/null
@@ -1,25 +0,0 @@
-// 981204 bkoz
-// g++/18208
-// Build don't link:
-
-typedef unsigned int uint_32;
-
-class puertorico {
-public:
- void *f ();
-private:
- uint_32 member;
-};
-
-void foo( )
-{
- uint_32 ui;
- puertorico obj;
-
- // Bug using static_cast<>
- ui = static_cast<uint_32>(obj); // ERROR - // ERROR -
-
- // Bug when missing the pair of braces
- ui = (uint_32) obj.f; // ERROR - // ERROR -
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/bool01.C b/gcc/testsuite/g++.old-deja/g++.benjamin/bool01.C
deleted file mode 100644
index c73557ae..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/bool01.C
+++ /dev/null
@@ -1,74 +0,0 @@
-//980323 bkoz
-//test for bools with inclusive ors
-
-#include <assert.h>
-void bar ( bool x ) {};
-void bars ( short x ) {};
-
-/* 980326 bkoz this is not initialized and so can have indeterminate value. */
-#if 0
-int orb(){
- bool y;
- bar ( y );
- int blob = ( 27 | int (y) );
- return blob; //expect 27 or 0
-}
-#endif
-
-int orbtrue(){
- bool y = true;
- bar ( y );
- int blob = ( 27 | int (y) );
- return blob; //expect 27
-}
-
-int orbfalse(){
- bool y = false;
- bar ( y );
- int blob = ( 27 | int (y) );
- return blob; //expect 27
-}
-
-int orbfalse2(){
- bool y = 0;
- bar ( y );
- int blob = ( 27 | int (y) );
- return blob; //expect 27
-}
-
-int ors(){
- short y = 1;
- bars ( y );
- int blob = ( 27 | int (y) );
- return blob; //expect 27
-}
-
-
-int orus(){
- unsigned short y = 1;
- bars ( y );
- int blob = ( 65539 | int (y) );
- return blob; //expect 65539, will be 3 if done in us type
-}
-
-
-int main() {
- int tmp;
-#if 0
- tmp = orb();
- assert (tmp == 27 || tmp == 0);
-#endif
- tmp = orbtrue();
- assert (tmp ==27);
- tmp = orbfalse();
- assert (tmp ==27);
- tmp = orbfalse2();
- assert (tmp ==27);
- tmp = ors();
- assert (tmp ==27);
- tmp = orus();
- assert (tmp == 65539);
-
- return 0;
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/bool02.C b/gcc/testsuite/g++.old-deja/g++.benjamin/bool02.C
deleted file mode 100644
index c17c935..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/bool02.C
+++ /dev/null
@@ -1,63 +0,0 @@
-//980324 bkoz
-//test for bool and bitwise ands
-
-#include <assert.h>
-
-
-void bar ( bool x ) {};
-void bars ( short x ) {};
-
-#if 0
-int andb(){
- bool y;
- bar ( y );
- int blob = ( 27 & int (y) );
- return blob; //expect 1 or 0
-}
-#endif
-
-int andbtrue(){
- bool y = true;
- bar ( y );
- int blob = ( 27 & int (y) );
- return blob; //expect 1
-}
-
-int andbfalse(){
- bool y = false;
- bar ( y );
- int blob = ( 27 & int (y) );
- return blob; //expect 0
-}
-
-int andbfalse2(){
- bool y = 0;
- bar ( y );
- int blob = ( 27 & int (y) );
- return blob; //expect 0
-}
-
-int ands(){
- short y = 1;
- bars ( y );
- int blob = ( 27 & int (y) );
- return blob; //expect 1
-}
-
-
-int main() {
- int tmp;
-#if 0
- tmp = andb();
- assert (tmp == 1 || tmp == 0);
-#endif
- tmp = andbtrue();
- assert (tmp == 1);
- tmp = andbfalse();
- assert (tmp == 0);
- tmp = andbfalse2();
- assert (tmp == 0);
- tmp = ands();
- assert (tmp == 1);
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/friend01.C b/gcc/testsuite/g++.old-deja/g++.benjamin/friend01.C
deleted file mode 100644
index 66d42c5..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/friend01.C
+++ /dev/null
@@ -1,31 +0,0 @@
-// Build don't link:
-//980610 bkoz
-// example 1: buggy
-
-class foo {
-public:
- class bar;
- int func(bar *);
- class bar {
- int st;
- public:
- bar(){st=12;}
- ~bar(){}
- friend int foo::func(bar *);
- };
- foo(){}
- ~foo(){}
-};
-
-
-int foo::func(bar *obj) {
- obj->st++;
- return (obj->st);
-}
-
-void test02() {
- foo obj_f;
- foo::bar obj_b;
-
- obj_f.func( &obj_b);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/friend02.C b/gcc/testsuite/g++.old-deja/g++.benjamin/friend02.C
deleted file mode 100644
index e9520e3..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/friend02.C
+++ /dev/null
@@ -1,31 +0,0 @@
-// Build don't link:
-//980610 bkoz
-// example 2: ok
-
-class bar;
-class foo {
-public:
- int func(bar *);
- foo(){}
- ~foo(){}
-};
-
-class bar {
- int st;
-public:
- bar(){st=12;}
- ~bar(){}
- friend int foo::func(bar *);
-};
-
-int foo::func(bar *obj) {
- obj->st++;
- return (obj->st);
-}
-
-void test02() {
- foo obj_f;
- bar obj_b;
-
- obj_f.func( &obj_b);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/p12475.C b/gcc/testsuite/g++.old-deja/g++.benjamin/p12475.C
deleted file mode 100644
index 6b210f3..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/p12475.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// Build don't link:
-// prms-id: 12475
-
-#include <limits.h>
-
-#if LONG_MAX == 2147483647
-#define TEST 2147483648
-#elif LONG_MAX == 9223372036854775807
-#define TEST 9223372036854775808
-#else
-#error "Unsupported test -- add new constants."
-#endif
-
-enum huh { start =-TEST, next }; // WARNING -
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/p13417.C b/gcc/testsuite/g++.old-deja/g++.benjamin/p13417.C
deleted file mode 100644
index 18d62e8..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/p13417.C
+++ /dev/null
@@ -1,11 +0,0 @@
-// Build don't link:
-// Special g++ Options:
-// prms-id: 13417
-
-class Foo {
-public:
- explicit Foo (int){}
-};
-Foo f(10);
-Foo blat() return f(4){}; //this should not give an error
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/p13721.C b/gcc/testsuite/g++.old-deja/g++.benjamin/p13721.C
deleted file mode 100644
index be1df79..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/p13721.C
+++ /dev/null
@@ -1,21 +0,0 @@
-// Build don't link:
-// prms-id: 13721
-
-class A
-{
- public :
- int a;
-};
-class B : public A
-{
- public :
- void cmp(int a, int b) {}
- B(int a = 0)
- {
- cmp(A::a, a); //should not give warning
- }
-};
-int main(void)
-{
- return(1);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/scope01.C b/gcc/testsuite/g++.old-deja/g++.benjamin/scope01.C
deleted file mode 100644
index a834f4f..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/scope01.C
+++ /dev/null
@@ -1,71 +0,0 @@
-// Build don't link:
-// 980604 bkoz
-// 3.4.5 Class member access p 4
-// nested and non-nested calls, no dtors
-
-struct L {
- int ii;
- void foo(int a) {++a;}
- struct Linner {
- int ii_inner;
- void foo_inner(int b) {++b;}
- };
-};
-class A : public L {};
-class B : public L {};
-class C : public A, public B {};
-
-
-void foo() {
- // straight call
- C x;
- x.A::ii = 5;
- x.A::foo(x.A::ii);
-
- // 5.1 Primary expressions
- // p 8
- // a nested name specifier that names a class,
- // optionally followed by the keyword template and then followd by
- // the name of a member of either that class or one of its base
- // classes is a qualified-id. (3.4.3.1 describes their lookup.)
-
- // 5.2.5 Class memember access
-
- // p 3 if E1 has the type 'pointer to class X' then
- // E1->E2 == (*(E1)).E32
- // E1 == object-expression
- // E2 == id-expression
- // thus everything gets converted to the "." notation
-
- // p 2
- // the id-expression shall name a member of the class
- // (object-expression) or of one of its base classes.
-
- // p4 if E2 is a nested type (of the object-expression), tye
- // expression E1.E2 is ill formed.
-
- // try 1 nested call - ERROR
-#if 0
- C x2;
- x2.A::L::Linner::ii_inner = 6; //ERROR violates p2, does not name member of C
- x2.A::L::Linner::foo_inner(x2.A::L::Linner::ii_inner);
-#endif
-
- //try2: scoped method call -edg +acc +g++
-#if 1
- C::A::Linner x2;
- x2.A::Linner::ii_inner = 6;
- x2.A::Linner::foo_inner(x2.A::Linner::ii_inner);
-#endif
-
- //try 3: non-scoped method call -edg +acc +g++
-#if 0
- C::A::L::Linner x3;
- x3.ii_inner = 6;
- x3.foo_inner(x3.ii_inner);
-#endif
-}
-
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/scope02.C b/gcc/testsuite/g++.old-deja/g++.benjamin/scope02.C
deleted file mode 100644
index a2c9c04..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/scope02.C
+++ /dev/null
@@ -1,208 +0,0 @@
-// Build don't link:
-//980529 bkoz
-//3.4.5 Class member access via pointer and non-pointer
-// non-nested dtor calls
-
-int counter = 0;
-
-struct X {
- int rank;
- X(int init = 64) : rank(init) { }
- ~X() { ++counter; }
- typedef X classtype;
-};
-typedef X globaltype;
-
-#if 0
-template <typename T>
-struct X_tem {
- T rank;
- X_tem(T init = T(64) ) : rank(init) { }
- ~X_tem() { ++counter; }
- typedef X_tem classtype_tem;
-};
-typedef X_tem<int> globaltype_tem;
-#endif
-
-
-
-
-int main(void)
-{
- // 3.4.5 Class member access
- // p 2
- // if the id-expression in a class member access is an
- // unqualified-id, and the type of the object expression is of class
- // type C (or pointer to class type C), the unqualified-id is looked
- // up in the scope of class C. If the type of the object-expression
- // is of pointer to scalar type, the unqualified-id is looked up in
- // the context of the complete postfix-expression.
-
- // p 3
- // if the unqualitified id is ~type-name, and the type of the object
- // expression is of a class type C (or pointer to class type C), the
- // type-name is looked up in the context of the entire
- // postfix-expression and in the scope of class C. The type-name
- // shall refer to a class-name. If type-name is found in both
- // contexts, the name shall refer to the same class type. If the
- // type of the object expression is of scalar type, the type-name is
- // looked up in the complete postfix-expression.
-
- typedef X localtype;
-
- //
- // 1 non-templatized, pointer, unqualified
- //
- X x01 ;
- X *px = &x01;
- px->~X();
-
- X x02 (66);
- px = &x02;
- px->~localtype();
-
- X x03 (68);
- px = &x03;
- px->~classtype(); //-g++ //p3: unqual-id lookup in object and postfix-expr
-
- X x04 (70);
- px = &x04;
- px->~globaltype();
-
-
- // p 1
- // . . . the id-expression is first looked up in the class of the
- // object-expression. If the identifier is not found, itis then
- // looked up in the context of the entier postfix-expression and
- // shall name a class or function template. If the lookup in the
- // class of the object-expression finds a template, the name is also
- // looked up in teh context of the entier postfix-expression and
- // 1 if the name is not found, use the name from the object-expr
- // 2 if the name found in postfix-expr != class template, use object-expr
- // 3 if name found is class template, name must match object-expr or error
-
- // p 4
-
- // if the id-expr in a class member acess is a qualified-id, the
- // id-expression is looked up in both the context of the entire
- // postfix-expr and in the scope of the class of the object-expr. If
- // the name is found in both contexts, the id-expr shall refer to
- // the same entity.
-
-
- //
- // 2 non-templatized, pointer, qualified
- //
- X x05 ;
- px = &x05;
- px->X::~X();
-
- X x06 (66);
- px = &x06;
- px->X::~localtype();
-
- X x07 (68);
- px = &x07;
- px->X::~classtype(); // -edg
-
- X x08 (70);
- px = &x08;
- px->X::~globaltype();
-
- X x09 (66);
- px = &x09;
- px->localtype::~localtype();
-
- X x10 (68);
- px = &x10;
- px->classtype::~classtype();
-
- X x11 (70);
- px = &x11;
- px->globaltype::~globaltype();
-
- X x12 (66);
- px = &x12;
- px->classtype::~localtype();
-
- X x13 (68);
- px = &x13;
- px->globaltype::~localtype();
-
- X x14 (70);
- px = &x14;
- px->localtype::~globaltype();
-
- X x15 (70);
- px = &x15;
- px->classtype::~globaltype();
-
- X x16 (70);
- px = &x16;
- px->localtype::~classtype(); //-edg
-
- X x17 (70);
- px = &x17;
- px->globaltype::~classtype(); //-edg
-
-#if 0
- //
- // non-templatized, non-pointer
- //
- X xo5 ;
- xo5.~X(); //unqualified
-
- localtype xo6 (66);
- xo6.~localtype();
-
- X xo7 (68);
- xo7.~classtype();
-
- X xo8 (70);
- xo8.~globaltype();
-
-
- //
- // templatized, pointer
- //
- X_tem<int> xto1 ;
- X_tem<int> *pxt = &xto1;
- pxt->~X_tem(); //unqualified
-
- typedef X_tem<int> localtype_tem;
- localtype_tem xto2 (66);
- pxt = &xto2;
- pxt->~localtype_tem();
-
- //paragraph 2: unqualitifed id looked up in scope of post-fix expr if object
- X_tem<int> xto3 (68);
- pxt = &xto3;
- pxt->~classtype_tem();
-
- X_tem<int> xto4 (70);
- pxt = &xto4;
- pxt->~globaltype_tem();
-
- //
- // templatized, non-pointer
- //
- X_tem<int> xto5 ;
- xto5.~X_tem(); //unqualified
-
- localtype_tem xto6 (66);
- xto6.~localtype_tem();
-
- X_tem<int> xto7 (68);
- xto7.~classtype_tem();
-
- X_tem<int> xto8 (70);
- xto8.~globaltype_tem();
-#endif
- return 0;
-}
-
-
-
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/tem01.C b/gcc/testsuite/g++.old-deja/g++.benjamin/tem01.C
deleted file mode 100644
index e464c0e..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/tem01.C
+++ /dev/null
@@ -1,136 +0,0 @@
-// Build don't link:
-// prms-id: 13911
-
-template<unsigned int N>
-class ref_counter {
-public:
- ref_counter() : p_refcnt(new unsigned int(N)) {}
- ref_counter(const ref_counter<N>& x) : p_refcnt(x.p_refcnt) {
- ++*p_refcnt;
- }
- ref_counter& operator=(const ref_counter<N>& rhs) {
- ++*rhs.p_refcnt;
- decrement();
- p_refcnt = rhs.p_refcnt;
- return *this;
- }
- ~ref_counter() {decrement();}
-
- bool unique() const {return *p_refcnt == N;}
-
-private:
- unsigned int* p_refcnt;
- void decrement() {
- if (unique()) delete p_refcnt;
- else --*p_refcnt;
- }
-};
-
-template<class T, unsigned int N>
-class ref_pointer {
-public:
-
- ref_pointer() : the_p(0) {}
- ref_pointer(T* just_newed) : the_p(just_newed) {}
- virtual ~ref_pointer() {if (unique()) delete the_p;}
-protected:
- ref_pointer(T* the_p_arg, ref_counter<N>& ref_count_arg)
- : the_p(the_p_arg), ref_count(ref_count_arg) {}
-
-public:
-
- ref_pointer& operator=(const ref_pointer&);
- ref_pointer& operator=(T*);
- operator const T*() const {return the_p;}
- T* operator()() {return the_p;}
- T* operator()() const {return the_p;}
- T& operator*() const {return *the_p;}
- friend bool operator==(const ref_pointer<T, N>& lhs,
- const ref_pointer<T, N>& rhs) {
- return lhs.the_p == rhs.the_p;
- }
- friend bool operator!=(const ref_pointer<T, N>& lhs,
- const ref_pointer<T, N>& rhs) {
- return lhs.the_p != rhs.the_p;
- }
-
-
- bool unique() const {return ref_count.unique();}
- bool isNull() const {return the_p==0;}
-
-protected:
- ref_counter<N>& refCount() {return ref_count;}
-
-private:
-
- ref_counter<N> ref_count;
- T* the_p;
-};
-
-template<class T, unsigned int N>
-ref_pointer<T, N>& ref_pointer<T, N>::operator=(const ref_pointer<T, N>& rhs) {
- if (the_p != rhs.the_p) {
- if (unique()) delete the_p;
- the_p = rhs.the_p;
- ref_count = rhs.ref_count;
- }
- return *this;
-}
-
-
-template<class T, unsigned int N>
-ref_pointer<T, N>& ref_pointer<T, N>::operator=(T* just_newed) {
- if (unique()) delete the_p;
- the_p = just_newed;
- ref_count = ref_counter<N>();
- return *this;
-}
-
-
-
-template<class T>
-class CountedObjPtr : public ref_pointer<T, 1> {
-public:
- CountedObjPtr() {}
- CountedObjPtr(T* just_newed) : ref_pointer<T, 1>(just_newed) {}
- CountedObjPtr(T* the_p_arg, ref_counter<1>& ref_count_arg)
- : ref_pointer<T, 1>(the_p_arg, ref_count_arg) {}
- CountedObjPtr<T>& operator=(T* rhs) {
- ref_pointer<T, 1>::operator=(rhs);
- return *this;
- }
- CountedObjPtr<T>& operator=(const CountedObjPtr<T>& rhs) {
- ref_pointer<T, 1>::operator=(rhs);
- return *this;
- }
- T* operator->() const {return (*this)();}
-
-};
-
-
-
-
-
-//instantiating type
-
-class TSObservable;
-
-class TSObserver {
-public:
-
- enum TSType { NormalTS, UpYldCrvTS, DownYldCrvTS, ZeroVolTS };
-
- virtual ~TSObserver() {}
-
- virtual void update(TSObservable* theChangedObservable) = 0;
- virtual TSType key() const { return myKey; }
- virtual TSType& key() { return myKey; }
-protected:
- TSObserver(TSType myKeyArg) : myKey(myKeyArg) {}
- TSType myKey;
-};
-
-
-
-//now try to instantiate
-template class CountedObjPtr<TSObserver>;
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/tem02.C b/gcc/testsuite/g++.old-deja/g++.benjamin/tem02.C
deleted file mode 100644
index 38a8f1d..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/tem02.C
+++ /dev/null
@@ -1,54 +0,0 @@
-// Build don't link:
-//980519 bad error from nathan
-//$ egcs -fhonor-std -nostdinc -c redef.C
-//redef.C:56: redefinition of default argument for `class _Traits'
-
-template<class _CharT> struct char_traits;
-template<class _CharT> struct char_traits { };
-template<> struct char_traits<char>;
-template<> struct char_traits<char> { };
-
-template<class _CharT, class _Traits = char_traits<_CharT> > class istreambuf_iterator;
-
-
-template<class _CharT, class _Traits>
- class istreambuf_iterator
-{
- public:
- typedef _Traits traits_type;
- class _Proxy;
- public:
- inline istreambuf_iterator() throw();
- inline istreambuf_iterator(const _Proxy& __p) throw();
-};
-
-
-template <class _CharT, class _Traits>
- class istreambuf_iterator<_CharT,_Traits>::_Proxy
-{
- public:
- _CharT operator*();
-
- //bug -g++ w/ decl "redef", no decl no prob.
- //ok -edg: no warnings
- friend class istreambuf_iterator; // XXX OK?
-
- //bug -g++ w/ decl "redef", no decl no prob.
- //ok -edg: no warnings
- //friend class istreambuf_iterator<_CharT,_Traits>;
-
- //bug -g++ w/ decl "redef", no decl no prob.
- //ok -edg: declaration of "_CharT" and "_Traits" hides template parameter
- //template <class _CharT, class _Traits> friend class istreambuf_iterator;
-
- //ok -g++
- //ok -edg
- //friend class istreambuf_iterator<_CharT>;
-
-};
-
-
-
-//explicit instantiation of a nested class
-template class istreambuf_iterator<char, char_traits<char> >::_Proxy;
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/tem03.C b/gcc/testsuite/g++.old-deja/g++.benjamin/tem03.C
deleted file mode 100644
index 0e4c389..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/tem03.C
+++ /dev/null
@@ -1,209 +0,0 @@
-// Build don't link:
-// 980808-980824 bkoz
-// template parameter redeclaration bugs
-
-// 14.1 Template parameters
-// p 13
-// The scope of a template-parameter extens from its point of
-// declartion until the end of its template. In particular, a
-// template-parameter can be used in the declaration of subsequent
-// template-parameters and their default arguments.
-
-// 14.6.1 Locally declared names
-// p 4
-// A template-parameter shall not be redeclared within its scope
-// (including nested scopes). A template-parameter shall not have the
-// sname name as the template name.
-
-
-// 01
-// declared friend template
-template <class T4>// ERROR - .*
-class Xone {
-protected:
- T4* next;
- T4* prev;
- T4 value;
-public:
- Xone(): next(0), prev(0), value(1999){}
- Xone(T4 init): value(init) {}
-
- // these are ok:
- // can also do template-decl and then can ditch the foward-declaration
- // template <class T5> friend bool isequal (Xone<T5>& lhs, Xone<T5>& rhs);
- // this is not ok:
- template <class T4> friend bool isequal (Xone<T4>& lhs, Xone<T4>& rhs);// ERROR - .*
-};
-
-
-// 02
-// nested template class
-template <class T6>// ERROR - .*
-class Xtwo {
-protected:
- T6* next;
- T6* prev;
- T6 value;
-public:
- Xtwo(): next(0), prev(0), value(1999){}
- Xtwo(T6 init): value(init) {}
-
- template <class T6> class nested {// ERROR - .*
- T6 value;
- public:
- nested(): value( T6(0)) {}
- };
-};
-
-
-// 03
-// member templates
-template <class T8>// ERROR - .*
-class Xthree {
-protected:
- T8* next;
- T8* prev;
- T8 value;
-public:
- Xthree(): next(0), prev(0), value(1999){}
- Xthree(T8 init): value(init) {}
-
- template <class T8> T8 comp_ge(T8 test) {// ERROR - .*
- T8 local_value;
- if (local_value > value)
- return local_value;
- else
- return value;
- }
-};
-
-
-// 04
-// local names (14.6.1 p 4)
-template <class T10, int i> struct Xfour {// ERROR - .*
- int T10; // ERROR - .*
- void f(){
- char T10;
- }
-};
-
-
-// 05
-// using different tempate-parms for out-of-line defs
-template <class T12, int i> struct Xfive {
- void f();
-};
-
-template <class T13, int i> void Xfive<T13,i>::f() {// ERROR - .*
- int T13; // ERROR - .*
- int T12; //should be ok
-}
-
-
-// 06
-// multiple names at the same level
-template <class T14, class T14> class Xsix { // ERROR - .*
-private:
-public:
- void f();
-};
-
-
-// 07
-// multiple names, one in template parameter one in class-name
-template <class T12> class T12; // ERROR - .*
-
-
-// 08
-// with multiple template params, and second (third) one is redeclared
-template <class T16, int i, class T161> class Xseven { // ERROR - .*
-private:
- char T161; // ERROR - .*
-public:
- template <class U>
- friend bool fooy(U u);
-
- template <class T161>
- friend bool foo(T161 u)
- {
- Xseven<T161, 5, int> obj;
- return (obj.inst == u.inst);
- }
-
-};
-
-
-// 09
-// check for correct scoping of member templates
-template <class T>
-struct S1
-{
- template <class U>
- void f(U u)
- {
- S1<U> s2u(u);
- s2u.g();
- }
-
- template <class U> //ok
- void f2(U u)
- {
- S1<U> s2u(u);
- s2u.g();
- }
-
-};
-
-
-// 10
-// check for non-type parameters, should still be able to redeclare?
-// local names (14.6.1 p 4)
-template <class T18, int i> class Xten {// ERROR - .*
- float i; // ERROR - .*
-};
-
-
-// 11
-// declared friend template, non-type parameters
-template <long l>// ERROR - .*
-class Xeleven {
-public:
- template <long l> friend bool isequal (Xeleven<5> lhs, Xeleven<5> rhs); // ERROR - .*
-};
-
-
-
-// 12
-// nested template class, non-type parameters
-template <long l>// ERROR - .*
-class Xtwelve {
-public:
- template <long l> class nested {// ERROR - .
- long value;
- public:
- nested(): value(0) {}
- };
-};
-
-
-// 13
-// member templates, non-type parameters
-template <long l>// ERROR - .*
-struct Xthirteen {
- template <long l> long comp_ge(long test) {// ERROR - .
- long local_value;
- if (local_value > value)
- return local_value;
- else
- return value;
- }
-};
-
-
-
-
-
-
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/tem04.C b/gcc/testsuite/g++.old-deja/g++.benjamin/tem04.C
deleted file mode 100644
index 0330d0b..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/tem04.C
+++ /dev/null
@@ -1,182 +0,0 @@
-// Build don't link:
-// 980827 bkoz
-// template parameter redeclaration bugs, part two:
-// template template params and expanded template non-type parms
-
-// 14.1 Template parameters
-// p 13
-// The scope of a template-parameter extens from its point of
-// declartion until the end of its template. In particular, a
-// template-parameter can be used in the declaration of subsequent
-// template-parameters and their default arguments.
-
-// 14.6.1 Locally declared names
-// p 4
-// A template-parameter shall not be redeclared within its scope
-// (including nested scopes). A template-parameter shall not have the
-// same name as the template name.
-
-// 14
-// declared friend template (v3, template type parameters)
-template <class T4>// ERROR - .*
-class Xfourteen {
-protected:
- T4 value;
-public:
- Xfourteen(T4 init): value(init) {}
- template <template <typename T4> class T5> // ERROR - .*
- friend bool isequal (Xfourteen<int>& lhs, Xfourteen<int>& rhs);
-};
-
-
-// 15
-// nested template class (v3, template type parameters)
-template <class T6>// ERROR - .*
-class Xfifteen {
-protected:
- T6 value;
-public:
- Xfifteen(T6 init): value(init) {}
-
- template <template <typename T6> class T7> class nested {// ERROR - .*
- int value;
- public:
- nested(): value( int(0)) {}
- };
-};
-
-
-// 16
-// member templates (v3, template type parameters)
-template <class T8>// ERROR - .*
-class Xsixteen {
-protected:
- T8 value;
-public:
- Xsixteen(T8 init): value(init) {}
-
- template <template <typename T8> class T9> int comp_ge(int test) {// ERROR - .*
- int local_value;
- if (local_value > value)
- return local_value;
- else
- return value;
- }
-};
-
-
-// 17
-// declared friend template (v4, template type parameters on the class)
-template <typename T9> class tem_base {
-public:
- T9 value;
-};
-
-template <typename T10, template <typename T12> class C10>
-class Xseventeen {
-protected:
- C10<T10> value;
-public:
- Xseventeen(){}
- template <typename T12> // ok??
- friend bool isequal (Xseventeen<T10, tem_base>& lhs,
- Xseventeen<T10, tem_base>& rhs);
-};
-
-//template class Xseventeen<int, tem_base>;
-
-
-// 18
-// more template template redecl tests
-template <typename T14, template <typename T15> class C12>// ERROR - .*
-class Xeighteen {
-protected:
- C12<T14> value;
- int C12; // ERROR - .*
-};
-
-
-// 19
-// more template template redecl tests
-template <typename T16, template <typename T17> class C14>// ERROR - .*
-class Xnineteen{
-protected:
- C14<T16> value;
- template <class C14> class nested {// ERROR - .*
- T16 value;
- public:
- nested(): value( T16(0)) {}
- };
-};
-
-
-// 20
-// local names (14.6.1 p 4) part two, variable names as template param
-template <class T17, int i> struct Xtwenty {
- void f(){
- T17 my_type; //ok
- for (int j = 0; j < 5; ++l)
- {
- T17 my_type; //ok
- ++my_type;
- }
- }
-};
-
-
-// 14.1 Template parameters
-// p 4
-// A non-type templat- parameter shall have one of the following
-// (optionally cv-qualified) types:
-// integral or enumeration type
-// pointer to object or pointer to function
-// referenct to object or referece to function
-// pointer to member
-
-// 21
-// non-type template parameters v1: enum
-enum my_enum {my_A = 45, my_B, my_C};
-
-template <my_enum T18> class Xtwentyone {// ERROR - .*
- float T18; // ERROR - .*
-};
-
-
-// 22
-// non-type template parameters v1: pointer to object
-struct base {
- int gcount;
- int ret_gcount() {return gcount;}
-};
-
-template <class T20, base* b> class Xtwentytwo {// ERROR - .*
- float b; // ERROR - .*
-};
-
-
-// 23
-// non-type template parameters v2: reference to object
-template <class T20, base& b2> class Xtwentythree {// ERROR - .*
- float b2; // ERROR - .*
-};
-
-
-// 24
-// non-type template parameters v3: pointer to member
-template <class T20, int base::* b3> class Xtwentyfour {// ERROR - .*
- float b3; // ERROR - .*
-};
-
-
-// 25
-// non-type template parms that use push_class_level
-template <class T22> void f1() {// ERROR - .*
- struct foo {
- enum T22 { un, du, toi }; // ERROR - .*
- };
-}
-
-
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/tem05.C b/gcc/testsuite/g++.old-deja/g++.benjamin/tem05.C
deleted file mode 100644
index 92ad739..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/tem05.C
+++ /dev/null
@@ -1,58 +0,0 @@
-// 980924 bkoz
-// just a quick test for export, to make sure we are warning for it.
-// CHANGE ME when it's supported
-// Build don't link:
-
-
-// 14 Templates
-//p 6
-// A namespace-scope declaration or definintion of a non-line function
-// template, a non-inline member function template, a non-inline
-// member function of a class template or a static data member of a
-// class template may be preceeded by the export keyword. If such a
-// template is defined in the same translation unit in which it is
-// declared as exported, the definition is considered to be
-// exported. The first declaration of the template containing the
-// export keyword must not follow the definition. (meaning that export
-// can't beredeclared as non-export??)
-
-// 1
-// template definition
-export template <class T> // WARNING -
-bool templ_one(T a) {
- if (a > 0)
- return true;
- else
- return false;
-}
-
-
-// 2
-// static data, mf, mf template
-template <class T>
-class X_one {
- unsigned short id;
- T type;
-public:
- static const bool is_specialized ;
-
- X_one(const unsigned short& us = 5): id(us), type(T(0)) {}
- unsigned short ret_id ();
- template <class T2> bool compare_ge(T2 test);
-};
-
-export template <class T> // WARNING -
-const bool X_one<T>::is_specialized = false;
-
-export template <class T> // WARNING -
-unsigned short X_one<T>::ret_id() {
- return id;
-}
-
-export template <class T> template <class T2> // WARNING -
-bool compare_ge(T2 test) {
- if (test > type)
- return true;
- return false;
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/tem06.C b/gcc/testsuite/g++.old-deja/g++.benjamin/tem06.C
deleted file mode 100644
index e55ee6a..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/tem06.C
+++ /dev/null
@@ -1,49 +0,0 @@
-// 980945 bkoz
-// test for correct operators at link time
-
-/*
-/tmp/cca211431.o: In function `void blah<foo<int> >(foo<int> const &)':
-/tmp/cca211431.o(.void gnu.linkonce.t.blah<foo<int> >(foo<int> const &)+0x1e): undefined reference to `void x<int>(int const &)'
-*/
-
-template<class T>
-class foo {
-public:
- foo () {}
- friend void x (const T &) { }
-};
-
-template<class T>
-void blah (const T &) {
- T y;
- x (4);
-};
-
-int main () {
- const foo<int> v;
- blah (v);
-}
-
-/*
-fno-exceptions -fno-rtti
-
-1.98r1.o:
-00000000 W __t3foo1Zi
-00000000 W blah__H1Zt3foo1Zi_RCX01_v
-00000000 t gcc2_compiled.
-00000000 T main
- U x__H1Zi_RCX01_v
-
-1.egcs.o:
-00000000 W __t3foo1Zi
-00000000 W blah__H1Zt3foo1Zi_RCX01_v
-00000000 t gcc2_compiled.
-00000000 T main
-00000000 W x__FRCi
-
-
-the reason this goes away at -O is because the U or W function is
-elided completely.
-
-*/
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/tem07.C b/gcc/testsuite/g++.old-deja/g++.benjamin/tem07.C
deleted file mode 100644
index 953ed90..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/tem07.C
+++ /dev/null
@@ -1,37 +0,0 @@
-
-template <class T>
-class Foo
-{
-public:
- Foo(const T&);
- Foo(const T&, const T&);
-};
-
-template <class T>
-Foo<T>::Foo(const T& t0)
-{
-}
-
-template <class T>
-Foo<T>::Foo(const T& t0, const T& t1)
-{
-}
-
-template Foo<int>::Foo(const int& t0);
-
-
-int main (void) {
- return 0;
-}
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/typedef01.C b/gcc/testsuite/g++.old-deja/g++.benjamin/typedef01.C
deleted file mode 100644
index ba6af18..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/typedef01.C
+++ /dev/null
@@ -1,46 +0,0 @@
-// Build don't link:
-//980205 bkoz
-
-//7.1.3 the typedef specifier
-
-
-//p1
-typedef int MILES, *KLICKSP;
-MILES distance;
-extern KLICKSP metricp;
-
-//p2--can redefine to same type
-typedef struct s { /* ... */ } s;
-typedef int I;
-typedef int I;
-typedef I I;
-
-//p3--cannot redefine to a different type in a given scope
-class complex2 { /* ... */ };// ERROR - .*
-typedef int complex2;// ERROR - .*
-typedef int complex3;// ERROR - .*
-class complex3 { /* ... */ };// ERROR - .*
-
-
-//p4
-/*
-4 A typedef-name that names a class is a class-name (_class.name_). If
- a typedef-name is used
- 1) following the class-key in an elaborated-type-specifier
- 2) or in the class-head of a class declaration
- 3) or is used as the identifier in the declarator for a
- constructor or destructor declaration
- the program is ill-formed. [Example:
-*/
-struct S {
- S();
- ~S();
-};
-
-typedef struct S T;
-
-S a = T(); // OK
-struct T * p; // ERROR - using typedef after struct
-
-//case01
-typedef bool short;// ERROR - .*
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/typedef03.C b/gcc/testsuite/g++.old-deja/g++.benjamin/typedef03.C
deleted file mode 100644
index cf09ccb..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/typedef03.C
+++ /dev/null
@@ -1,44 +0,0 @@
-// Build don't link:
-//980526 bkoz
-// reduced testcase for 980511 brendan qt bug
-
-
-class QTextStream
-{
-public:
- QTextStream();
- virtual ~QTextStream();
-
- enum {
- skipws = 0x0001,
- left = 0x0002,
- right = 0x0004,
- internal = 0x0008,
- bin = 0x0010,
- oct = 0x0020,
- dec = 0x0040,
- hex = 0x0080,
- showbase = 0x0100,
- showpoint = 0x0200,
- uppercase = 0x0400,
- showpos = 0x0800,
- scientific= 0x1000,
- fixed = 0x2000
- };
-
- static const int basefield;
- static const int adjustfield;
-};
-
-typedef QTextStream QTS;
-const int QTS::basefield = (QTS::bin | QTS::dec | QTS::hex) ;
-const int QTS::adjustfield = QTS::left | QTS::right | QTS::internal;
-#if 0
-#define QTS QTextStream
-const int QTS::basefield = (QTS::bin | QTS::dec | QTS::hex) ;
-const int QTS::adjustfield = QTS::left | QTS::right | QTS::internal;
-#endif
-
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/typeid01.C b/gcc/testsuite/g++.old-deja/g++.benjamin/typeid01.C
deleted file mode 100644
index c75c65b..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/typeid01.C
+++ /dev/null
@@ -1,71 +0,0 @@
-// 980617 bkoz
-// typeid for local types
-// typeid bool vs int and enum vs int
-
-#include <typeinfo>
-#ifdef DEBUG_ASSERT
-#include <assert.h>
-#endif
-
-// 4: local class in non-main function
-
-void test1 (void) {
- bool class_p = false;
- class X2 {
- private:
- unsigned int counter;
- public:
- X2 (unsigned int i = 35): counter(i) {}
- ~X2(){}
- unsigned int ret_counter() {return counter;}
- };
- X2 obj_1;
- class_p = typeid(X2) == typeid(obj_1);
-}
-
-int main ()
-{
- // 1: simple
-#if 1
- bool enum_p = false;
- enum E { A, B, C };
- enum_p = typeid(A) == typeid(E);
-#ifdef DEBUG_ASSERT
- assert (enum_p);
-#endif
-#endif
-
- // 2: complex
-#if 0
- bool enum2_p = false;
- bool int_p = false;
- bool bool_p = false;
- enum E2 { A2, B2};
- enum2_p = typeid(A2) == typeid(E2);
- int_p = typeid(int) == typeid(E2);
- bool_p = typeid(bool) == typeid(E2);
-#ifdef DEBUG_ASSERT
- assert (enum2_p);
- assert (!int_p);
- assert (!bool_p);
-#endif
-#endif
-
- // 3: local class
- bool class_p = false;
- class X {
- private:
- unsigned int counter;
- public:
- X (unsigned int i = 35): counter(i) {}
- ~X(){}
- unsigned int ret_counter() {return counter;}
- };
- X obj_1;
- class_p = typeid(X) == typeid(obj_1);
-
- // 4: local class in function
- test1();
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/warn01.C b/gcc/testsuite/g++.old-deja/g++.benjamin/warn01.C
deleted file mode 100644
index d0cf0d0..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/warn01.C
+++ /dev/null
@@ -1,98 +0,0 @@
-// Build don't link:
-// Special g++ Options: -Wall -Weffc++
-
-//1 g++/12952 un-named variables in a catch block
-//Wall or Wunused should not give warnings here
-template <class T>
-void f (void) {
- try
- {
- }
-
- catch( int)
- {
- }
-};
-
-//
-//2 g++/12923 __attribute__((__unused__)) not working for objects
-//Weffc++ or Wunused should not report the object as an error
-class C {
- public:
- C();
-};
-
-void f (void){
- C x __attribute__ ((__unused__));
- int y __attribute__ ((__unused__));
-}
-
-//
-//3 g++/12982 lock should not give error here, as above
-void setLock ();
-void clearLock ();
-
-template <class T>
-class test {
-public:
- class lock
- {
- public:
- lock () { setLock(); }
- ~lock () { clearLock(); }
- };
-
- static void f (void)
- {
- lock local __attribute__ ((__unused__));
- }
-
-};
-
-
-//
-//4 g++/12988 neither Mutex nor AutoMutex varibles should give warnings here
-//compile with -Weffc++ or -Wunused depending on post or pre 97r1
-class Mutex {
-private:
- long counter;
-public:
- virtual long retcntr() {return counter;};
- Mutex(int i = 0): counter(i) {};
- virtual ~Mutex() {};
-} __attribute__ ((__unused__));
-
-class AutoMutex: public Mutex{
-private:
- long counter2;
-public:
- long retcntr() {return counter2;};
- AutoMutex(int i = 0): counter2(i) {};
- virtual ~AutoMutex() {};
-} __attribute__ ((__unused__));
-
-
-template <class T>
-int foofunc(T x){
- Mutex sm(2);
- AutoMutex m(&sm);
- return 0;
-};
-
-
-//5 sanity check to make sure other attributes cannot be used
-class Mutex2 {
-private:
- long counter;
-public:
- virtual long retcntr() {return counter;};
- Mutex2(int i = 0): counter(i) {};
- virtual ~Mutex2() {};
-} __attribute__ ((warn)); // WARNING -
-
-
-
-
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/warn02.C b/gcc/testsuite/g++.old-deja/g++.benjamin/warn02.C
deleted file mode 100644
index e63d43c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/warn02.C
+++ /dev/null
@@ -1,54 +0,0 @@
-// 980413 bkoz
-// from g++/15307, tests for -Wredundant-decls
-// for friend functions and functions
-// Build don't link:
-//Special g++ Options: -Wredundant-decls
-
-
-extern int foo(const char *);
-
-class A
-{
- friend int foo(const char *);
- int a;
-};
-
-class B
-{
- friend int foo(const char *);
- int foo2() {return b;}
- int b;
-};
-
-class C
-{
- friend int foo(const char *);
- friend int foo(const char *); // WARNING -
- int foo2() {return b;}
- int b;
-};
-
-class D
-{
-public:
- int foo2() {return b;}
- int foo2() {return b;} // ERROR -
- int b;
-};
-
-class E
-{
-public:
- int foo2();
- int foo2(); // ERROR -
- int b;
-};
-
-extern int foo3(const char *); // WARNING -
-extern int foo3(const char *); // WARNING -
-
-
-
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/warn03.C b/gcc/testsuite/g++.old-deja/g++.benjamin/warn03.C
deleted file mode 100644
index b3bd3af..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/warn03.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// 980420 bkoz
-// from g++/15307, tests for -Wredundant-decls for decls
-// Build don't link:
-// Special g++ Options: -Wredundant-decls
-
-//shouldn't crash
-extern unsigned char *foo5[];
-extern unsigned char *foo5[];
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/warn04.C b/gcc/testsuite/g++.old-deja/g++.benjamin/warn04.C
deleted file mode 100644
index cb96ac6..0000000
--- a/gcc/testsuite/g++.old-deja/g++.benjamin/warn04.C
+++ /dev/null
@@ -1,9 +0,0 @@
-// 980903 bkoz
-// make sure this option works
-// Build don't link:
-// Special g++ Options: -Wno-non-template-friend
-
-
-template<class T> class task {
- friend void next_time(); //shouldn't give a warning
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/array1.C b/gcc/testsuite/g++.old-deja/g++.bob/array1.C
deleted file mode 100644
index 2e86f6f..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/array1.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// Build don't link:
-char *stuff() {
- char array[10]; // WARNING -
-
- return array;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/array2.C b/gcc/testsuite/g++.old-deja/g++.bob/array2.C
deleted file mode 100644
index 8ddeba8..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/array2.C
+++ /dev/null
@@ -1,4 +0,0 @@
-// Build don't link:
-extern const int a[];
-extern const int a[];
-extern const int a[];
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/case1.C b/gcc/testsuite/g++.old-deja/g++.bob/case1.C
deleted file mode 100644
index a8e5f7b..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/case1.C
+++ /dev/null
@@ -1,13 +0,0 @@
-// prms-id: 9028
-class Foo;
-
-int main()
-{
- int i=0;
- switch (i)
- {
- case ((Foo *)0): // ERROR -
- case ((Foo *)1): // ERROR -
- break;
- }
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/cond1.C b/gcc/testsuite/g++.old-deja/g++.bob/cond1.C
deleted file mode 100644
index d6f1165..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/cond1.C
+++ /dev/null
@@ -1,31 +0,0 @@
-// Build don't link:
-// prms-id: 9866
-class TChar
- {
-public:
- explicit inline TChar(unsigned int aChar);
- inline operator unsigned int() const;
-private:
- unsigned int iChar;
- };
-inline TChar::TChar(unsigned int aChar)
- : iChar(aChar)
- {}
-inline TChar::operator unsigned int() const
- {return(iChar);}
-
-class TDes8
- {
-public:
- inline const unsigned char &operator[](int anIndex) const;
- const unsigned char &AtC(int anIndex) const;
- };
-
-inline const unsigned char &TDes8::operator[](int anIndex) const
- {return(AtC(anIndex));}
-
-
-void doExponent(TDes8 &aDigBuf)
- {
- 2 ? TChar(aDigBuf[2]) : '0';
- }
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/delete1.C b/gcc/testsuite/g++.old-deja/g++.bob/delete1.C
deleted file mode 100644
index cf4c8df..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/delete1.C
+++ /dev/null
@@ -1,22 +0,0 @@
-// prms-id: 7330
-#include <stddef.h>
-int size = 0;
-
-struct X {
- int x;
- void *operator new[](size_t sz) throw() {
- size = sz;
- return 0;
- }
- void operator delete[] (void *vp) { ::operator delete(vp); }
-};
-int main()
-{
- X (*px) [10];
-
- px = new X[5][10];
-
- delete [] px;
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/extern_C.C b/gcc/testsuite/g++.old-deja/g++.bob/extern_C.C
deleted file mode 100644
index 6b91adc..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/extern_C.C
+++ /dev/null
@@ -1,9 +0,0 @@
-// Build don't link:
-extern "C" {
- class A {
- public:
- void a();
- };
-};
-
-void A::a() {}
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/friend1.C b/gcc/testsuite/g++.old-deja/g++.bob/friend1.C
deleted file mode 100644
index 1782f08..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/friend1.C
+++ /dev/null
@@ -1,4 +0,0 @@
-class C {
-public:
- static friend int f(); // ERROR -
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/incomplete-cast1.C b/gcc/testsuite/g++.old-deja/g++.bob/incomplete-cast1.C
deleted file mode 100644
index fb08c63..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/incomplete-cast1.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// prms-id: 5274
-class VHDLIdentifier;
-
-class VHDLPackageProtoRep {
-public:
- int thing();
-private:
- virtual VHDLIdentifier &actual_name() ;
-};
-extern void form(const char *format, ... );
-int
-VHDLPackageProtoRep::thing()
-{
- form("package `%s'", (char *)actual_name()); // ERROR - can't convert from incomplete type
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/inherit1.C b/gcc/testsuite/g++.old-deja/g++.bob/inherit1.C
deleted file mode 100644
index 4d62e38..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/inherit1.C
+++ /dev/null
@@ -1,25 +0,0 @@
-// Build don't link:
-class A {
-char str[10];
-public:
- char* m1 () { return str;};
-};
-
-class C : public A {
-public:
-};
-
-class B : public A {
-public:
- char* m1 () { C::m1(); return ""; } // ERROR -
-};
-
-int main () {
-A a;
-B b;
-C c;
-
-a.m1();
-c.m1();
-b.m1();
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/inherit2.C b/gcc/testsuite/g++.old-deja/g++.bob/inherit2.C
deleted file mode 100644
index 52d35b0..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/inherit2.C
+++ /dev/null
@@ -1,22 +0,0 @@
-// Build don't link:
-class A {
-public:
- void z();
- A(void) {}
-private:
- A(const A &) { abort(); } // ERROR -
- const A& operator =(const A &) { abort(); }
-};
-
-class B : public A {
-public:
- B(void) {}
-};
-
-void f(B b) {
-};
-
-void g() {
- B h;
- f(h); // ERROR -
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/nested1.C b/gcc/testsuite/g++.old-deja/g++.bob/nested1.C
deleted file mode 100644
index b5b7a76..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/nested1.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
- class A {
- class B {
- typedef long T;
- int i;
- };
- };
- class C {
- class B {
- typedef float T;
- int i;
- };
- };
-
-C::B::T a;
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/packed1.C b/gcc/testsuite/g++.old-deja/g++.bob/packed1.C
deleted file mode 100644
index 86a946f..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/packed1.C
+++ /dev/null
@@ -1,17 +0,0 @@
-int
-main() {
- struct s
- {
- int a;
- short b;
- } __attribute__((packed)) t;
-
- if (sizeof (t) != (sizeof(int)+sizeof(short)))
- {
- return 1;
- }
- else
- {
- return 0;
- }
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/protected1.C b/gcc/testsuite/g++.old-deja/g++.bob/protected1.C
deleted file mode 100644
index 95a400e..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/protected1.C
+++ /dev/null
@@ -1,42 +0,0 @@
-// Build don't link:
-class A {
-public:
- int i;
- A(int j) : i(j){}
-};
-
-class B : protected A {
-public:
- B(int j) : A(j){}
- void f(){
- A k(*this);
- }
-};
-
-class C : protected B {
-public:
- C(int j) : B(j){}
- void f();
-
- void g(){
- A k(i);
- }
-};
-
-
-class D : public C {
-public:
- D(int w) : C(i) {}
- void j() { A k(*this); }
- void h() { i=3; }
-};
-
-void C::f() {
- A k(*this);
-}
-
-B b(3);
-int
-main() {
- A *z = &b; // ERROR -
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/static1.C b/gcc/testsuite/g++.old-deja/g++.bob/static1.C
deleted file mode 100644
index a8e6b88..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/static1.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-class A {
- public:
- static int a;
-};
-
-class B : public A {
- public:
- static int b;
-};
-
-int B::a; // ERROR -
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/template1.C b/gcc/testsuite/g++.old-deja/g++.bob/template1.C
deleted file mode 100644
index 4a22f08..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/template1.C
+++ /dev/null
@@ -1,27 +0,0 @@
-// Build don't link:
-// prms-id: 10038
-template < class Referencee >
-class Referencer
-{
-public:
- Referencer (Referencee const * pReferencee);
-};
-
-template <class T>
-class Array
-{
-public:
- int addElement (T const & e);
- int addElement ();
-};
-
-class ScenarioGroup;
-
-class ScenarioSet : public Array< Referencer<ScenarioGroup> >
-{
- typedef Array< Referencer<ScenarioGroup> > arrayBase;
- void addElement(ScenarioGroup *group)
- {
- arrayBase::addElement(group);
- }
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/template2.C b/gcc/testsuite/g++.old-deja/g++.bob/template2.C
deleted file mode 100644
index 5663da8..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/template2.C
+++ /dev/null
@@ -1,49 +0,0 @@
-// Build don't link:
-// prms-id: 10046
-template <class T>
-class Array
-{
-public:
- T const & operator[] (int i) const;
-};
-
-class Referenceable {};
-
-template < class Referencee >
-class Referencer
-{
-public:
- operator Referencee *() const { return i_referencee; }
-
-protected:
- Referencee* i_referencee;
-};
-
-class ScenarioGroup {};
-
-class ScenarioSpace;
-
-class ScenarioSet : public Referenceable,
- public Array< Referencer<ScenarioGroup> >
-{
-public:
- ScenarioSet& operator=(ScenarioSet const & s);
-};
-
-class ScenarioSpace : public Referenceable,
- public Array< Referencer<ScenarioSet> >
-{
-};
-
-class ScenarioSetNameSelector
-{
-public:
- bool operator () (ScenarioSpace &space)
- {
- int idx;
- i_set = space[idx];
- return false;
- }
-private:
- ScenarioSet *i_set;
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/template3.C b/gcc/testsuite/g++.old-deja/g++.bob/template3.C
deleted file mode 100644
index 7aca6ed..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/template3.C
+++ /dev/null
@@ -1,49 +0,0 @@
-// Build don't link:
-// prms-id: 9979
-
-template < class Referencee >
-class Referencer
-{
-public:
- Referencer() {}
-};
-
-template <class T>
-class List
-{
-public:
- List() {}
-};
-
-template<class T, class KEY>
-class Dictionary
-{
-public:
- Dictionary() : i_buckets (new List<T>[1234]) {}
- ~Dictionary() { delete [] i_buckets; }
-
- List<T> * i_buckets;
-};
-
-class Exchangeable {};
-class ExchangeableHandle {};
-
-class ExchangeableList
- : public Dictionary<Referencer<Exchangeable>, ExchangeableHandle>
-{
-public:
- ExchangeableList(int size=0);
-};
-
-class ObjectExchange
-{
-public:
- ObjectExchange() {};
-
- ExchangeableList i_theWatchList; // Instruments being monitored
-};
-
-int
-main()
-{
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.bob/template4.C b/gcc/testsuite/g++.old-deja/g++.bob/template4.C
deleted file mode 100644
index 1ef2057..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bob/template4.C
+++ /dev/null
@@ -1,21 +0,0 @@
-// prms-id: 10166
-
-template <class A>
-class B {
- public:
- int f() {
- for(int x=0;x<10;x++) {
- continue;
- return 1;
- }
- return 0;
- }
- private:
- A w;
-};
-
-int
-main() {
- B<int> c;
- return c.f();
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/README b/gcc/testsuite/g++.old-deja/g++.brendan/README
deleted file mode 100644
index ce760b1..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/README
+++ /dev/null
@@ -1,40 +0,0 @@
-
-abstract - abstract functions
-alignof - gcc alignof builtin
-ambiguity - diagnosing ambiguities
-arm - ARM cases
-array-refs - arrays of references
-bit-fields - bit fields
-chainon - deaths cuz we call chainon() incorrectly
-copy - copy constructors
-crash - old compiler crashes/aborts
-cvt - user-defined conversions
-def-fns - default function generation (in add'n to copy)
-enum-clash - int vs enum
-enum - enumerated types
-err-msg - error messages
-friend - dealing with friend functions and classes
-groff - crashes derived from groff code
-init - initialization bugs
-label - handling labels
-line - line numbers in error messages
-misc - miscellaneous tests that didn't fit another category
-nest - nested types
-new-array - doing new of an array
-new - generic operator new bugs
-operators - tests for various overloaded operators
-parse - parser bugs
-prepost - prefix/postfix operator ++/--
-ptolemy - bugs derived from ptolemy
-recurse - infinite recursion in the compiler
-redecl - handling redeclarations
-scope - managing scopes
-shadow - shadowing of params, etc
-sizeof - ARM compliance w/ sizeof operator
-sorry - old "sorry, not implemented" messages
-static - handling static data
-template - template bugs
-union - handling unions
-visibility - access control and visibility checking
-warnings - warning messages
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/abstract1.C b/gcc/testsuite/g++.old-deja/g++.brendan/abstract1.C
deleted file mode 100644
index b9cd9c5..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/abstract1.C
+++ /dev/null
@@ -1,25 +0,0 @@
-// Build don't link:
-// GROUPS passed abstract-functions
-class O
-{
-public:
- virtual int c()=0;
-};
-
-class I: public O
-{
-};
-
-class S: public virtual I
-{
-public:
- int c();
- virtual int v()=0;
-};
-
-class D: public S
-{
- int v();
-};
-
-D *p=new D();
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/access1.C b/gcc/testsuite/g++.old-deja/g++.brendan/access1.C
deleted file mode 100644
index 0272c7a..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/access1.C
+++ /dev/null
@@ -1,23 +0,0 @@
-// Build don't link:
-// GROUPS passed access-control
-class Base
-{
-protected:
- virtual void DoSomething() = 0;
-};
-
-class Fibber : public Base
-{
-public:
- void DoBP() {
- DoSomething();
- }
-};
-
-class Flat : public virtual Fibber
-{
-public:
- void DoIt() {
- DoSomething();
- }
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/alignof.C b/gcc/testsuite/g++.old-deja/g++.brendan/alignof.C
deleted file mode 100644
index 1449ade..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/alignof.C
+++ /dev/null
@@ -1,13 +0,0 @@
-// Build don't link:
-// GROUPS passed extensions
-struct bar { int bit : 1; };
-
-void foo (int *r, bar t)
-{
- // doing alignof on a bit-field should be illegal
- __alignof__ (t.bit);// ERROR - .*
-
- // both of these (a regular ref and an INDIRECT_REF) should work
- __alignof__ (r);
- __alignof__ (*r);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/ambiguity1.C b/gcc/testsuite/g++.old-deja/g++.brendan/ambiguity1.C
deleted file mode 100644
index c6d6fcb..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/ambiguity1.C
+++ /dev/null
@@ -1,17 +0,0 @@
-// Build don't link:
-// GROUPS passed ambiguity
-struct A {
- A (int);
-};
-
-struct B {
- B (int);
-};
-
-void myfunc (const A& t0); // ERROR -
-void myfunc (const B& t0); // ERROR -
-
-int main ()
-{
- myfunc(1); // ERROR - ambiguous call
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/anon-union1.C b/gcc/testsuite/g++.old-deja/g++.brendan/anon-union1.C
deleted file mode 100644
index 86b7ce3..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/anon-union1.C
+++ /dev/null
@@ -1,7 +0,0 @@
-// Build don't link:
-// GROUPS passed anonymous-unions
-static union {
- char* uC;
-private:
- int uI;// ERROR - .*private member.*
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/arm1.C b/gcc/testsuite/g++.old-deja/g++.brendan/arm1.C
deleted file mode 100644
index e415632..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/arm1.C
+++ /dev/null
@@ -1,11 +0,0 @@
-// Build don't link:
-// Special g++ Options: -pedantic-errors
-// GROUPS passed ARM-compliance
-// ARM $5.7, it's illegal to do math on a `void*'.
-
-int
-main()
-{
- void *p;
- ++p;// ERROR - .*
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/arm2.C b/gcc/testsuite/g++.old-deja/g++.brendan/arm2.C
deleted file mode 100644
index 62bdc3d..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/arm2.C
+++ /dev/null
@@ -1,19 +0,0 @@
-// Build don't link:
-// GROUPS passed ARM-compliance
-// ARM 9.4 ``There cannot be a static and a nonstatic member function
-// with the same name and the same argument types.''
-//
-// The trick is to make sure it's caught with both orders (static,
-// then normal, and vice-versa.
-
-class X {
-public:
- int foo();
- static int foo(); // error: redeclaration// ERROR - .*
-};
-
-class Y {
-public:
- static int foo();
- int foo(); // error: redeclaration// ERROR - .*
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/arm3.C b/gcc/testsuite/g++.old-deja/g++.brendan/arm3.C
deleted file mode 100644
index c352bfa..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/arm3.C
+++ /dev/null
@@ -1,9 +0,0 @@
-// Build don't link:
-// GROUPS passed initialization
-// ARM $11.4: A function first declared in a friend decl is equivalent
-// to an extern decl, so the below is illegal.
-
-class X {
- friend g(); // ERROR - previous declaration
-};
-static g() { return 1; }// ERROR - previously declared
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/array-refs.C b/gcc/testsuite/g++.old-deja/g++.brendan/array-refs.C
deleted file mode 100644
index 0eaa45c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/array-refs.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// Build don't link:
-// GROUPS passed arm
-int a, b;
-
-// declaring an array of references should be illegal
-int & v[ 2] = { a, b};// ERROR - .*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/array1.C b/gcc/testsuite/g++.old-deja/g++.brendan/array1.C
deleted file mode 100644
index 1812958..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/array1.C
+++ /dev/null
@@ -1,7 +0,0 @@
-// Build don't link:
-// Special g++ Options: -fconserve-space -fcommon
-// GROUPS passed array-bindings
-
-extern "C" void printf (char *, ...);
-char array[~(~0ul>>1)|~(0ul>>3)]; // ERROR - overflow in array dimension.*
-int main () { printf ("PASS\n"); return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/asm-extn1.C b/gcc/testsuite/g++.old-deja/g++.brendan/asm-extn1.C
deleted file mode 100644
index fecd092..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/asm-extn1.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// Build don't link:
-// Special g++ Options: -S
-// GROUPS passed asm-extension
-// Skip if not target: sparc-sun-*
-// This used to crash because c_expand_asm_keyword didn't know what to
-// do with this. The parser rules were changed to accept an expr, instead
-// of a stmt.
-
-extern void traptable(void);
-
-main()
-{
- asm("wr %0,%%tbr" : : "r" (traptable));
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/bit-fields1.C b/gcc/testsuite/g++.old-deja/g++.brendan/bit-fields1.C
deleted file mode 100644
index 76f4ac3..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/bit-fields1.C
+++ /dev/null
@@ -1,5 +0,0 @@
-// Build don't link:
-// GROUPS passed bit-fields
-struct bar {
- int : 2 = 1;// ERROR - .*
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/bit-fields2.C b/gcc/testsuite/g++.old-deja/g++.brendan/bit-fields2.C
deleted file mode 100644
index c77ce86..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/bit-fields2.C
+++ /dev/null
@@ -1,13 +0,0 @@
-// Build don't link:
-// GROUPS passed bit-fields
- struct {
- char c;
- int i:8;
- } s;
-
- int main()
- {
- int &ir = s.i; // ERROR - address of bitfield
- int *ip = &s.i; // ERROR - address of bitfield
- ir = 10;
- }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/bool1.C b/gcc/testsuite/g++.old-deja/g++.brendan/bool1.C
deleted file mode 100644
index 1e7b343..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/bool1.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-// GROUPS passed boolean
-int
-main()
-{
- typedef char Boolean; // Instrinsic.h
- Boolean c = false;
- bool b = true;
-
- if (!c != !b)
- ;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/code-gen1.C b/gcc/testsuite/g++.old-deja/g++.brendan/code-gen1.C
deleted file mode 100644
index 84dd634..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/code-gen1.C
+++ /dev/null
@@ -1,40 +0,0 @@
-// GROUPS passed code-generation
-// Check that sub-word sized structs/classes are passed correctly
-// if the struct/class has a constructor (i.e. ANY constructor).
-
-extern "C" void printf (char *, ...);
-
-struct base {
- unsigned int f1 : 8;
- unsigned int f2 : 8;
-
- base (int ii)
- {
- }
-};
-
-base global_base (7);
-
-int test2 (base formal_base);
-
-int main ()
-{
- global_base.f1 = 0x55;
- global_base.f2 = 0xee;
-
- if (test2 (global_base) == 0)
- printf ("PASS\n");
- else
- printf ("FAIL\n");
-
- return 0;
-}
-
-int test2 (base formal_base)
-{
- if (formal_base.f1 != global_base.f1)
- return -1;
- if (formal_base.f2 != global_base.f2)
- return -1;
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/code-gen2.C b/gcc/testsuite/g++.old-deja/g++.brendan/code-gen2.C
deleted file mode 100644
index 133755e..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/code-gen2.C
+++ /dev/null
@@ -1,18 +0,0 @@
-// GROUPS passed code-generation
-// Check that declarations with initializations are executed
-// correctly.
-
-extern "C" void printf (char *, ...);
-
-int main ()
-{
- char buff[40] ;
- char *tmp = &buff[0]; // also fails for char *tmp = buff;
-
- if ((unsigned int) tmp != (unsigned int) &buff[0])
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/code-gen3.C b/gcc/testsuite/g++.old-deja/g++.brendan/code-gen3.C
deleted file mode 100644
index 6d73bd2..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/code-gen3.C
+++ /dev/null
@@ -1,34 +0,0 @@
-// GROUPS passed code-generation
-// Check that passing things which are not a multiple of
-// 4 bytes in size doesn't mess up other subsequent parameters.
-
-extern "C" void printf (char *, ...);
-
-struct base {
- int f1 : 8;
- int f2 : 8;
-};
-
-base global_base;
-
-int val1;
-
-int test2 (struct base formal_base, int v1);
-
-int main ()
-{
- val1 = 0x5e5e;
- return test2 (global_base, val1);
-}
-
-int test2 (struct base formal_base, int v1)
-{
- formal_base.f1 = formal_base.f2; // prevent warnings
-
- if (v1 != 0x5e5e)
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/code-gen4.C b/gcc/testsuite/g++.old-deja/g++.brendan/code-gen4.C
deleted file mode 100644
index e29b16a..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/code-gen4.C
+++ /dev/null
@@ -1,31 +0,0 @@
-// Special g++ Options: -O
-// GROUPS passed code-generation
-// Options: -O
-//
-// Check that when an int value is assigned to a short int, the proper
-// half of the int (i.e. the low order half) ends up in the short.
-//
-// This fails with 1.32.0 with -O and f1() is inline.
-//
-// Workaround - declare "f1_arg" as type "short int".
-
-extern "C" void printf (char *, ...);
-
-short int v2;
-
-long v1 = 0x11117777;
-
-inline void f1 (long f1_arg)
-{
- v2 = f1_arg;
-}
-
-int main ()
-{
- f1 (v1);
-
- if (v2 != 0x00007777)
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/code-gen5.C b/gcc/testsuite/g++.old-deja/g++.brendan/code-gen5.C
deleted file mode 100644
index 2598777..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/code-gen5.C
+++ /dev/null
@@ -1,57 +0,0 @@
-// Special g++ Options: -Wno-deprecated -fthis-is-variable
-// GROUPS passed code-generation
-// Check that the "this" pointer is zero when a method is
-// called for an object pointed to by a null pointer.
-
-// Normally, the "__builtin_new" operation which actually
-// allocates objects in heap space is *not* called at the
-// actual point of the "new" keyword. Rather, a check is
-// made within each constructor and if the "this" pointer
-// value passed in is zero, then the actual allocation of
-// memory (via __builtin_new) is done at that point (i.e.
-// at the very beginning of the constructor).
-
-// A special trick allows one to subvert this mechanism.
-// Specifically, if a given constructor contains a statement
-// like: "this = this", then no attempt will be made to
-// implicitly call __builtin_new within that constructor.
-
-extern "C" void printf (char *, ...);
-
-struct base {
- int member;
-
- base ();
- void member_function ();
-};
-
-base *base_pointer_1 = 0;
-base *base_pointer_2 = 0;
-
-int errors = 0;
-
-int main ()
-{
- //base_pointer_2 = new base();
- base_pointer_1->member_function ();
-
- if (errors)
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-
- return 0;
-}
-
-base::base ()
-{
- this = this;
- if ((int) this != 0)
- errors++;
-}
-
-void base::member_function ()
-{
- if ((int) this != 0)
- errors++;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/code-gen6.C b/gcc/testsuite/g++.old-deja/g++.brendan/code-gen6.C
deleted file mode 100644
index ea5d730..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/code-gen6.C
+++ /dev/null
@@ -1,54 +0,0 @@
-// GROUPS passed code-generation
-// Check that type float parameters can be correctly passed to
-// methods.
-
-extern "C" void printf (char *, ...);
-
-class tres_floats {
- float ff1;
- float ff2;
- float ff3;
-public:
- tres_floats (float f1, float f2, float f3);
- float get_f1 ();
- float get_f2 ();
- float get_f3 ();
-};
-
-float v1 = 1.2345;
-float v2 = 3.14159;
-float v3 = 0.707;
-
-int main ()
-{
- tres_floats tf (v1, v2, v3);
-
- if ((tf.get_f1() != v1) || (tf.get_f2() != v2) || (tf.get_f3() != v3))
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-
- return 0;
-}
-
-tres_floats::tres_floats (float f1, float f2, float f3)
-{
- ff1 = f1;
- ff2 = f2;
- ff3 = f3;
-}
-
-float tres_floats::get_f1 ()
-{
- return ff1;
-}
-
-float tres_floats::get_f2 ()
-{
- return ff2;
-}
-
-float tres_floats::get_f3 ()
-{
- return ff3;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/complex1.C b/gcc/testsuite/g++.old-deja/g++.brendan/complex1.C
deleted file mode 100644
index 908b4ca..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/complex1.C
+++ /dev/null
@@ -1,22 +0,0 @@
-// Special g++ Options:
-
-// This test makes sure that the stuff in lex.c (real_yylex) is
-// set up to handle real and imag numbers correctly. This test is against
-// a bug where the compiler was not converting the integer `90' to a
-// complex number, unless you did `90.0'. Fixed 10/1/1997.
-
-extern "C" void printf (char *, ...);
-
-__complex__ double cd;
-
-int
-main(int argc, char *argv[])
-{
- cd = 1.0+90i;
- cd *= argc;
-
- if (__real__ cd != 1 || __imag__ cd != 90)
- exit (1);
-
- exit (0);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/copy1.C b/gcc/testsuite/g++.old-deja/g++.brendan/copy1.C
deleted file mode 100644
index 27d959f8..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/copy1.C
+++ /dev/null
@@ -1,21 +0,0 @@
-// GROUPS passed copy-ctors
-extern "C" void printf (char *, ...);
-int count = 0;
-
-class C {
-public:
- C (int) { count++; }
- operator int () { return 0; }
-};
-
-int
-main ()
-{
- C c1 (1);
- C c2 (c1);
-
- if (count != 1)
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/copy2.C b/gcc/testsuite/g++.old-deja/g++.brendan/copy2.C
deleted file mode 100644
index 0ecc1e9..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/copy2.C
+++ /dev/null
@@ -1,79 +0,0 @@
-// GROUPS passed copy-ctors
-/*
-The old g++ output is
-
-Item()
-Compound()
-Pre foo
-foo
-~Compound()
-~Item()
-Post foo
-~Compound()
-~Item()
-
-The output should be something like (produced from ATT 2.1)
-
-Item()
-Compound()
-Pre foo
-Item(const Item& i) <------ missing above
-foo
-~Compound()
-~Item()
-Post foo
-~Compound()
-~Item()
-
-*/
-
-extern "C" void printf (char *, ...);
-extern "C" void exit (int);
-
-int count = 0;
-
-void
-die (int x)
-{
- if (x != ++count)
- {
- printf ("FAIL\n");
- exit (1);
- }
-}
-
-
-class Item {
- public:
- Item() { die (1); }
- Item(const Item& i) { die (4); }
- ~Item() { count++; if (count != 7 && count != 10) die (-1); }
-};
-
-
-class Compound {
- Item i;
- public:
- Compound() { die (2); }
- ~Compound() { count++; if (count != 6 && count != 9) die (-1); }
-};
-
-
-void foo(Compound a)
-{
- die (5);
-}
-
-int
-main()
-{
- Compound a;
-
- die (3);
- foo(a);
-
- die (8);
-
- printf ("PASS\n");
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/copy3.C b/gcc/testsuite/g++.old-deja/g++.brendan/copy3.C
deleted file mode 100644
index 3b1edd5..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/copy3.C
+++ /dev/null
@@ -1,58 +0,0 @@
-// GROUPS passed copy-ctors
-/*
-
-If I compile it with cfront (AT&T C++ Translator 2.00.02 08/25/89) and run it
-I get:
-
- A::A()
- A::A(const A&)
- B::Bar()
- A::~A()
- A::~A()
-
-If I compile it with g++ (gcc version 2.2.2) and run it I get:
-
- A::A()
- B::Bar()
- A::~A()
- A::~A()
-
-*/
-extern "C" void printf (char *, ...);
-extern "C" void exit (int);
-
-int count = 0;
-
-void
-die (int x)
-{
- if (x != ++count)
- {
- printf ("FAIL\n");
- exit (1);
- }
-}
-
-
-class A {
-public:
- A() { die (1); }
- A(const A&) { die (2); }
- ~A() { count++; if (count != 4 && count != 5) die (-1); }
-};
-
-class B : public A {
-public:
- void Bar() { die (3); }
-};
-
-void Foo(B b) { b.Bar(); }
-
-int
-main()
-{
- B b;
- Foo(b);
-
- printf ("PASS\n");
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/copy4.C b/gcc/testsuite/g++.old-deja/g++.brendan/copy4.C
deleted file mode 100644
index 35b5393..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/copy4.C
+++ /dev/null
@@ -1,58 +0,0 @@
-// GROUPS passed copy-ctors
-// Using Cfront 3.0.1 the programm below prints
-//
-// A()
-// A(const A& a)
-// ~A()
-// A(A& a) <---- !!!
-// ~A()
-// ~A()
-//
-// the g++ 2.2.2 (sparc-sun-sunos4.1) generated code prints
-//
-// A()
-// A(const A& a)
-// ~A()
-// A(const A& a) <---- !!!
-// ~A()
-// ~A()
-
-extern "C" void printf (char *, ...);
-extern "C" void exit (int);
-
-int count = 0;
-
-void
-die (int x)
-{
- if (x != ++count)
- {
- printf ("FAIL\n");
- exit (1);
- }
-}
-
-class A {
-public:
- A() { die (1); }
- A(const A& a) { die (2); }
- A(A& a) { die (4); }
- ~A() { count++; if (count != 3 && count != 5 && count != 6) die (-1); }
-};
-
-void foo1(const A& a) {
- A b = a;
-}
-
-void foo2( A& a) {
- A b = a;
-}
-
-int main() {
- A a;
-
- foo1(a);
- foo2(a);
-
- printf ("PASS\n");
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/copy5.C b/gcc/testsuite/g++.old-deja/g++.brendan/copy5.C
deleted file mode 100644
index 277940b..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/copy5.C
+++ /dev/null
@@ -1,85 +0,0 @@
-// GROUPS passed copy-ctors
-/*
-bad:
-sibelius402> a.out
-a=5 a.virtMember()=30
-BaseClass::Increm --> {i=5, virtMember()=30}
-a=7 a.virtMember()=30
-b=7 b.virtMember()=30
-BaseClass::Increm --> {i=7, virtMember()=999}
-b=9 b.virtMember()=30
-sibelius403>
-
- good:
-
-sibelius406> a.out
-a=5 a.virtMember()=30
-BaseClass::Increm --> {i=5, virtMember()=30}
-a=7 a.virtMember()=30
-b=7 b.virtMember()=30
-BaseClass::Increm --> {i=7, virtMember()=30}
-b=9 b.virtMember()=30
-*/
-
-extern "C" void printf (char *, ...);
-extern "C" void exit (int);
-
-void die () { printf ("FAIL\n"); exit (1); }
-
-class BaseClass {
-
- friend int operator != (const BaseClass irv, int x);
-
- int i;
-
-public:
-
- BaseClass( const BaseClass& ir ) : i(ir.i) {};
- BaseClass() : i(5) {};
-
- virtual int virtMember() { return( 999 ); };
-
- void Increm( int r );
-};
-
-void BaseClass::Increm( int r )
-{
- if ((i == 5 && virtMember () == 30)
- || (i == 7 && virtMember () == 30))
- i += r;
- else
- die ();
-};
-
-class DerivedClass : public BaseClass {
-public:
- int virtMember() { return( 30 ); };
-};
-
-int operator != (const BaseClass irv, int x) { return irv.i != x; }
-
-int
-main ()
-{
- DerivedClass a;
-
- if (a != 5 || a.virtMember () != 30)
- die ();
-
- a.Increm(2);
-
- if (a != 7 || a.virtMember () != 30)
- die ();
-
- DerivedClass b = a;
-
- if (b != 7 || a.virtMember () != 30)
- die ();
-
- b.Increm(2);
-
- if (b != 9 || a.virtMember () != 30)
- die ();
-
- printf ("PASS\n");
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/copy6.C b/gcc/testsuite/g++.old-deja/g++.brendan/copy6.C
deleted file mode 100644
index d15a4be..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/copy6.C
+++ /dev/null
@@ -1,55 +0,0 @@
-// GROUPS passed copy-ctors
-/*
-g++ 2.3.3 will prefer using type conversions over the
-implicitly generated copy constructor. This is wrong.
-If you explicitly define a copy constructor, it will
-use it. However, the implicit copy constructor MUST be
-called whenever an explicit one would have been called
-also. See below: g++ converts from and back into
-unsigned, instead of using the implicit copy constructor:
-here is the version:
-Reading specs from /usr/lib/gcc-lib/i386-linux/2.3.3/specs
-gcc version 2.3.3
- /usr/lib/gcc-lib/i386-linux/2.3.3/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dunix -Di386 -Dlinux -D__unix__ -D__i386__ -D__linux__ -D__unix -D__i386 -D__linux bug2.cc /usr/tmp/cca02008.i
-GNU CPP version 2.3.3 (80386, BSD syntax)
- /usr/lib/gcc-lib/i386-linux/2.3.3/cc1plus /usr/tmp/cca02008.i -quiet -dumpbase bug2.cc -version -o /usr/tmp/cca02008.s
-GNU C++ version 2.3.3 (80386, BSD syntax) compiled by GNU C version 2.3.3.
- as -o /usr/tmp/cca020081.o /usr/tmp/cca02008.s
- ld /usr/lib/crt0.o -nojump -L/usr/lib/gcc-lib/i386-linux/2.3.3 /usr/tmp/cca020081.o -lg++ -lgcc -lc -lgcc
-
-Ok, and here is the output:
-test k: constructing from scratch
-test l=k: type conversion into unsigned
-constructing from unsigned
-
-*/
-
-extern "C" void printf (char *, ...);
-extern "C" void exit (int);
-
-int count = 0;
-
-void die () { printf ("FAIL\n"); exit (1); }
-
-struct test {
- test() { if (count != 0) die (); }
-
- test(unsigned) {
- die ();
- }
- operator unsigned() {
- die ();
- return 0;
- }
-};
-
-int
-main() {
- test k;
- test l=k;
-
- printf ("PASS\n");
-
- return 0;
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/copy7.C b/gcc/testsuite/g++.old-deja/g++.brendan/copy7.C
deleted file mode 100644
index e2f4e7a..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/copy7.C
+++ /dev/null
@@ -1,30 +0,0 @@
-// GROUPS passed copy-ctors
-extern "C" void printf (char *, ...);
-extern "C" void exit (int);
-
-void die () { printf ("FAIL\n"); exit (1); }
-
-class B {
-public:
- B() {}
- B(const B &) { printf ("PASS\n"); exit (0); };
-private:
- int x;
-};
-
-class A : public B {
-public:
- A() {}
-
- A(const B &) { printf ("FAIL\n"); exit (1); }
-};
-
-int
-main()
-{
- A a;
- A b(a);
-
- printf ("FAIL\n");
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/copy8.C b/gcc/testsuite/g++.old-deja/g++.brendan/copy8.C
deleted file mode 100644
index fe248ba..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/copy8.C
+++ /dev/null
@@ -1,67 +0,0 @@
-// GROUPS passed copy-ctors
-/*
-This report is for GCC 2.3.3 running on a Sun/4. The bug is that when
-a class instance is passed-by-value, GCC does not correctly copy the value.
-At the end of this report is an example program that demonstrates the bug.
-It should print:
-
- construct A('x')
- copy A('x')
- destruct A('x')
- destruct A('x')
-
-and in fact does for IBM's xlC C++. However, for GCC 2.3.3, it fails
-to print the second line ["copy A('x')"], which indicates that it failed
-to call the copy-constructor for class A when it should have. Below is a
-typescript that lists the program, shows how I compiled it, and shows the
-incorrect output.
-*/
-
-extern "C" void printf (char *, ...);
-extern "C" void exit (int);
-
-int count = 0;
-
-void
-die (int x)
-{
- if (x != ++count)
- {
- printf ("FAIL\n");
- exit (1);
- }
-}
-
-class A { // Class with explicit & instrumented copy-constructor and destructor.
-public:
- const char * id;
- A( const char * id1 ) : id(id1) { die (1); }
-
- // Copy constructor
- A( const A& a ) : id(a.id) { die (2); }
-
- // Destructor
- ~A() { count++; if (count != 3 && count != 4) die (-1); }
-};
-
-class X { // Class without explicit copy-constructor
-private:
- A a;
-public:
- X( const char * id ) : a(id) {}
-};
-
-void Func( X x ) { // Function with call-by-value argument
-}
-
-int
-main() {
- X x("x"); // Construct instance of x.
-
- // The next line should call the copy-constructor for X since x is
- // being passed by value. For GCC 2.3.3 on a Sun/4, it does not.
- Func(x);
-
- printf ("PASS\n");
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/copy9.C b/gcc/testsuite/g++.old-deja/g++.brendan/copy9.C
deleted file mode 100644
index 59fd228..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/copy9.C
+++ /dev/null
@@ -1,41 +0,0 @@
-// GROUPS passed copy-ctors
-#include <iostream.h>
-
-// token types: from state parser
-const int T_EOF = 257;
-const int T_ERROR = 258;
-const int T_Float = 259;
-const int T_Int = 260;
-const int T_ID = 261;
-const int T_STRING = 262;
-
-class Complex;
-class State;
-
-// token, from state parser.
-class ParseToken {
-public:
- int tok;
- union {
- char cval;
- const char *sval;
- int intval;
- double doubleval;
- Complex* Complexval;
- const State* s;
- };
- ParseToken () { tok = 0; intval = 0;}
-};
-
-int
-main () {
- ParseToken a;
- a.tok = T_Float;
- a.doubleval = 23.2;
- ParseToken b(a);
-
- if (b.doubleval == 23.2)
- cout << "PASS\n";
- else
- cout << "FAIL\n";
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash1.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash1.C
deleted file mode 100644
index 66de235..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash1.C
+++ /dev/null
@@ -1,44 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class D_Interval;
-
-class Date
-{
- public:
- Date(const D_Interval*,const Date&);
-private:
- const D_Interval* interval;
-};
-
-class Time_Interval
-{
- public:
- Time_Interval(const Date& start,const Date& stop);
- const Date& Start() const { return start; }
- const Date& Stop() const { return stop; }
- private:
- Date start;
- Date stop;
-};
-
-class Dated_Data
-{
- public:
- Dated_Data(const Time_Interval& dates);
- virtual ~Dated_Data();
- Time_Interval Dates() const { return dates; }
- private:
- Time_Interval dates;
-};
-
-class Raw_Data : public Dated_Data
-{
- public:
- Raw_Data(const Dated_Data *source,const D_Interval& period);
-};
-
-Raw_Data::Raw_Data(const Dated_Data *source,const D_Interval& period)
- : Dated_Data(Time_Interval(Date(&period,source->Dates().Start()),
- Date(&period,source->Dates().Stop())))
-{
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash10.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash10.C
deleted file mode 100644
index 6680718..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash10.C
+++ /dev/null
@@ -1,28 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class word
-{
- unsigned char b1, b2;
-public:
- word (unsigned int i = 0) { b1 = i & 0xff; b2 = (i & 0xff00) >> 8; }
- operator unsigned int () { return (b2 << 8) + b1; }
-};
-
-class just_another
-{
- int foo;
- char bar[23];
-};
-
-int mumble(word w)
-{
- just_another *jap;
- unsigned bar;
-
- bar = w;
-
- jap = new just_another [w];
-
- return 0;
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash11.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash11.C
deleted file mode 100644
index 00c3086..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash11.C
+++ /dev/null
@@ -1,24 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-extern "C" void printf (char *, ...);
-
-class A {
- int i; // ERROR - private
- int j; // ERROR - private
- public:
- int h;
- A() { i=10; j=20; }
- virtual void f1() { printf("i=%d j=%d\n",i,j); }
- friend virtual void f2() { printf("i=%d j=%d\n",i,j); }// ERROR - virtual.*
-};
-
-class B : public A {
- public:
- virtual void f1() { printf("i=%d j=%d\n",i,j); }// ERROR - member.*// ERROR - member.*
- friend virtual void f2() { printf("i=%d j=%d\n",i,j); }// ERROR - virtual.*// ERROR - member.*// ERROR - member.*
-};
-
-int
-main() {
- A * a = new A;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash12.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash12.C
deleted file mode 100644
index 0671c7b..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash12.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class X
-{
- int i;
-public:
- X(int j);
-}
-
-X *x = new X[10]();// ERROR - .*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash13.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash13.C
deleted file mode 100644
index c375e9b..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash13.C
+++ /dev/null
@@ -1,36 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class gen_op
-{
-public:
- gen_op ( );
- gen_op (const gen_op &Op1);
- ~gen_op ( );
- void operator = (const gen_op &Op1);
-};
-
-
-
-
-class spin_op
-{
-public:
- spin_op();
- spin_op(const spin_op& SOp);
- ~spin_op();
- void operator= (const spin_op& SOp);
- operator gen_op();
-};
-
-
-spin_op Fe();
-
-
-gen_op Spul_U_axis()
-{
- gen_op U1;
- U1 = Fe();
-}; // ERROR - reaches end of non-void function
-
-int
-main () {};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash14.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash14.C
deleted file mode 100644
index dc28121..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash14.C
+++ /dev/null
@@ -1,24 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-extern "C" void printf (char *, ...);
-
-
-class cl
-{
- int i;
-public:
- cl(int j = 0) {i = j;}
- int get_i() {return i;}
- };
-
-int
-main()
-{
- cl ob[3] = {1, 2, 3};
- int i;
-
- for(i=0; i<3; i++)
- printf("%d\n", ob[i].get_i());
-
- return 0;
- }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash15.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash15.C
deleted file mode 100644
index 56a7e75..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash15.C
+++ /dev/null
@@ -1,22 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-#include <iostream.h>
-
-class A {
- public:
- virtual ~A() {cout << "executed ~A()\n";};
-};
-
-class B : public A {
- public:
- virtual ~B() {cout << "executed ~B()\n";};
-};
-
-int
-main() {
- cout << "starting\n";
- B b;
- b.~A();// ERROR - destructor
- cout << "done\n";
-};
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash16.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash16.C
deleted file mode 100644
index 5030b29..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash16.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class Graph {
-public:
- unsigned char N;
- Graph(void) {}; // ERROR - previously defined here
-}
-
-Graph::Graph(void)
-{ N = 10;// ERROR - return type.*
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash17.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash17.C
deleted file mode 100644
index 7072eab..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash17.C
+++ /dev/null
@@ -1,35 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-//
-// This one creates
-//
-// gcc2: Internal compiler error: program cc1plus got fatal signal 11
-//
-// when compiled with g++.
-// The error goes away, if
-// 1) int ClassInvariant() is not virtual or
-// 2) GnObject has a virtual destructor or
-// 3) GnWidget has no virtual destructor or
-// 4) GnContracts has a virtual destructor
-//
-
-
-class GnContracts {
- public:
- virtual int ClassInvariant();
-// virtual ~GnContracts();
-};
-
-class GnObject : public GnContracts {
- public:
-// virtual ~GnObject();
-};
-
-class GnWidget : public GnObject {
- public:
- virtual ~GnWidget();
-};
-
-class GnOptionGroup : public GnObject, public GnWidget {
-};// ERROR - warning
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash18.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash18.C
deleted file mode 100644
index d4a4c60..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash18.C
+++ /dev/null
@@ -1,17 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-typedef int element;
-class Pix {
-public:
- Pix();
- Pix(const Pix&);
-
- // Friend functions so that v == x works as does x == v works
- friend int operator==(void *v, const Pix& x)
- { return v == index; }// ERROR - .*
- friend int operator==(void *v, const Pix& x)
- { return v != index; }// ERROR - .*
-private:
-// friend class List<T>;
- element *index;
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash2.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash2.C
deleted file mode 100644
index ad6e040..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash2.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-// The compiler used to crash on this example.
-
-class x {
-public:
- x();
- static const x y[23];
-};
-const x x::y[23];
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash20.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash20.C
deleted file mode 100644
index 7704b98..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash20.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-#include <complex>
-typedef complex<double> Complex;
-
-Complex ComputeVVself()
-{
-Complex temp1;
-Complex self[3][3];
-
- self[1][2] = 100.0;
- return self[1][2];
-
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash22.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash22.C
deleted file mode 100644
index f7db97d..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash22.C
+++ /dev/null
@@ -1,11 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-struct A {
- void a1();
- void a2();
-};
-
-struct B {
- void A::a1(); // this used to die in chainon(), now grokdeclarator should// ERROR - cannot declare.*
- void A::a2(); // should be fixed by the 930629 change.// ERROR - cannot declare.*
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash23.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash23.C
deleted file mode 100644
index 03ffee6..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash23.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-// This used to die in chainon; it shouldn't any more.
-
-class A
-{
-public:
- class B {
- public:
- void f ();
- void g (int);
- };
- void B::f () {}// ERROR - .*
- void B::g (int val) {}// ERROR - .*
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash24.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash24.C
deleted file mode 100644
index af1c301..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash24.C
+++ /dev/null
@@ -1,19 +0,0 @@
-// Build don't link:
-// Special g++ Options: -O
-// GROUPS passed old-abort
-// gcc puts the array into a register, and then the store_bit_field () code
-// in expmed.c gets confused when it tries to store zero past the end of the
-// register (because the index is past the array bounds). It ends up calling
-// store_split_bit_field, which then aborts, because we don't have a split bit
-// field.
-//
-// Seems easiest to detect this case in the front end, i.e. access outside the
-// array bounds, and then force the array to be allocated on the stack instead
-// of a register.
-
-main()
-{
- char i[1];
-
- i[1] = 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash25.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash25.C
deleted file mode 100644
index 625eaf8..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash25.C
+++ /dev/null
@@ -1,18 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class memo{
-public:
- static int rep;
-};
-
-class port_head : public memo {
-public:
- static int rep;
- unsigned cap();
-};
-
-class buff_head : private port_head {
-public:
- static int rep;
- port_head::cap;
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash26.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash26.C
deleted file mode 100644
index 9b6643d..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash26.C
+++ /dev/null
@@ -1,11 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-struct B {
- B();
-};
-
-class C : virtual public B
-{
- public:
- C() { }
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash27.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash27.C
deleted file mode 100644
index 62acbe0..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash27.C
+++ /dev/null
@@ -1,20 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class First {
-public:
- First(const First& a);
-};
-
-class Second {
- int i;
- First f;
-public:
- ~Second() {}
- Second func();
-};
-
-void foo()
-{
- extern Second x;
- x = x.func();
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash28.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash28.C
deleted file mode 100644
index 08adee9..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash28.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
- class abc
- {
- public:
- void F() { return; }
-
- private:
- typedef int myint;
- typedef struct { int b; } mystruct;
- typedef union { int c; } myunion;
- };
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash29.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash29.C
deleted file mode 100644
index 72bbdc7..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash29.C
+++ /dev/null
@@ -1,19 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-
-union Value
-{
- Value(){}
-};
-
-struct GlobalAddress
-{
- GlobalAddress(Value *nvar){}// ERROR - .*
-};// ERROR - candidates .*
-
-int
-main()
-{
- new GlobalAddress(Value()); // internal error occured here// ERROR - no matching function .*
- //new GlobalAddress(new Value()); // This line is correct code
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash3.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash3.C
deleted file mode 100644
index b3b8354..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash3.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-int strcmp();
-
-extern "C" {
- // dies in common_type, cuz the TREE_TYPE of t2 is 0, so it can't get its
- // TYPE_MAIN_VARIANT value.
- // <void_type 184510 void permanent VOID
- // size <integer_cst 1844e0 type <integer_type 182548 int> constant permanent 0
- // align 1 symtab 0
- // pointer_to_this <pointer_type 1845e0>
-
-int strcmp(const char*, const char*);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash30.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash30.C
deleted file mode 100644
index 707e898..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash30.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-#include <string>
-
-int
-main(void) {
-
- string a[] = {"Hello"};
-
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash31.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash31.C
deleted file mode 100644
index d5b7e54..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash31.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-struct mbuf {
- struct mbuf *next;
-};
-
-void* malloc(int);
-struct mbuf *
-mbuf_allocate(int size)
-{
- struct mbuf *bp;
-
- bp = (struct mbuf *) malloc( 10 /*(unsigned) (size + sizeof(struct mbuf))*/);
- return bp;
-
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash32.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash32.C
deleted file mode 100644
index ebca5a4..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash32.C
+++ /dev/null
@@ -1,5 +0,0 @@
-// Build don't link:
-// Special g++ Options: -fshort-enums
-// GROUPS passed old-abort
-enum Bool { FALSE, TRUE };
-Bool foo () { return TRUE; }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash33.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash33.C
deleted file mode 100644
index d89fa7b..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash33.C
+++ /dev/null
@@ -1,7 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-extern void foo(void *);
-int
-main() {
- foo((struct bar *)0);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash34.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash34.C
deleted file mode 100644
index a147b62..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash34.C
+++ /dev/null
@@ -1,3 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-operator int () {}// ERROR - .*// ERROR - .*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash35.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash35.C
deleted file mode 100644
index e32b7c1..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash35.C
+++ /dev/null
@@ -1,20 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-const unsigned int ENET_INTERRUPT_MID = 5;
-
-extern "C" void ENET_RxP();
-
-class EnetReceiver
- {
- public:
- friend void ENET_RxP();
- void receiveMessage();
- int *messagePointer;
- };
-
-void EnetReceiver::receiveMessage()
- {
- if (*((unsigned int*) messagePointer) == ENET_INTERRUPT_MID)
- {
- }
- }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash36.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash36.C
deleted file mode 100644
index 1053453..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash36.C
+++ /dev/null
@@ -1,7 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-struct wait { int w_status; };
-int wait();
-extern "C" int wait(int*);
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash37.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash37.C
deleted file mode 100644
index 18eb64a..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash37.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-typedef int _sigset_t;
-extern "C" {
- extern int sigaction(int signo, const struct sigaction *action_spec_p, struct sigaction *old_action_p);
-}
-extern "C" {
- extern void foo();
-};
-class SS {
- friend void foo();
-protected:
- void goo();
-};
-inline void
-SS::goo() { }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash38.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash38.C
deleted file mode 100644
index eeb70e1..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash38.C
+++ /dev/null
@@ -1,43 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-/*
- I received the following message when using g++ (version 2.3.3):
-
- main.cc: In method 'Implicit<implicit<INTEGER,2>,3>::Implicit()':
- main.cc: Internal compiler error 241.
- main.cc: Please report this to 'bug-g++@prep.ai.mit.edu'
- */
-
-#include <stream.h>
-
-class INTEGER {
-int x;
-public:
- typedef int BASE;
- INTEGER(int y) : x(y) {}
- INTEGER() {}
- void encode() { cout << "Integer encoder";}
- int operator=(int y) { x=y; return x; }
- operator int() {return x; }
-};
-
-template< class T, int n> class Implicit : public T {
- public:
- typedef typename T::BASE BASE;
- Implicit(BASE value ): T(value) {};
- Implicit() : T() {};
- int myTag() { return n; }
- void encode() { T::encode(); }
- BASE operator=(BASE t) { return T::operator=(t); }
-};
-
-int
-main()
-{
- Implicit<Implicit<INTEGER, 2> , 3> y;
-
- y = 10;
-};
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash39.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash39.C
deleted file mode 100644
index a191872..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash39.C
+++ /dev/null
@@ -1,33 +0,0 @@
-// Build don't link:
-// Special g++ Options: -w
-// GROUPS passed old-abort
-//#include <GetOpt.h>
-#include <stdio.h>
-
-class GetOpt
-{
-private:
- static char *nextchar;
- enum OrderingEnum { REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER };
- OrderingEnum ordering;
- static int first_nonopt;
- static int last_nonopt;
- void exchange (char **argv);
-public:
- char *optarg;
- int optind;
- int opterr;
-
- int nargc;
- char **nargv;
- const char *noptstring;
-
- GetOpt (int argc, char **argv, const char *optstring);
- int operator () (void);
-};
-//end <GetOpt.h>
-#include <string>
-
-class foo {public: foo () {}};
-class bar {public: bar (const foo& dflt);};
-class baz: public bar {public: baz (): bar (foo ()) {}};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash4.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash4.C
deleted file mode 100644
index 1f8a3ff..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash4.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-typedef struct Thing {
- Thing();
- int x;
-} Thing;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash40.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash40.C
deleted file mode 100644
index dcebfbe..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash40.C
+++ /dev/null
@@ -1,17 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class foo {
-
-public:
-
- virtual foo &operator <<(foo &(foo::*)(foo &));
-};
-
-
-foo &foo::operator<<(foo &(foo::*manip)(foo &))
-{
-
- (this->*manip)(*this);
-
- return *this;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash41.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash41.C
deleted file mode 100644
index 5d533b8..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash41.C
+++ /dev/null
@@ -1,11 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-typedef void (**ppfn)(void);
-
-int main() {
- ppfn fn;
-
- fn = new (void(*)(void));
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash42.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash42.C
deleted file mode 100644
index 1b92f5d..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash42.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// GROUPS passed old-abort
-// Build don't link:
-int fn();// ERROR - ambiguates.*
-int x;
-int& fn() {// ERROR - new decl.*
-return x;}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash43.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash43.C
deleted file mode 100644
index 5fe5423..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash43.C
+++ /dev/null
@@ -1,25 +0,0 @@
-// Build don't link:
-// Special g++ Options: -g -fno-strict-prototype
-// GROUPS passed old-abort
-// excess errors test - XFAIL sparc64-*-elf
-extern "C" { typedef int jmp_buf[12]; }
-
-enum Error { NO_ERROR };
-class ErrorHandler
-{
- ErrorHandler *previous;
- static ErrorHandler *error_stack;
- jmp_buf error_buffer;
-protected:
- static void pop()
- {
- error_stack = error_stack->previous;
- }
-public:
- jmp_buf *push()
- {
- previous = error_stack;
- error_stack = this;
- return &error_buffer;
- }
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash44.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash44.C
deleted file mode 100644
index 00a4df4..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash44.C
+++ /dev/null
@@ -1,27 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-template <class T> class bug {
-
-public:
- void Foo(const int = 0);
- void NotRedeclared(const int);
-
-private:
- T TheItem;
-};
-
-template <class T> void bug<T>::NotRedeclared(const int)
-{
-}
-
-template <class T> void bug<T>::Foo(const int)
-{
-}
-
-int
-main()
-{
- bug<char> InstantiatedBug;
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash45.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash45.C
deleted file mode 100644
index 269a519..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash45.C
+++ /dev/null
@@ -1,3 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-void foo() { static const char *const v[] = { 0 }; }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash46.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash46.C
deleted file mode 100644
index 64d8d59..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash46.C
+++ /dev/null
@@ -1,26 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class Rational {
-public:
- Rational(int v): value(v)
- { }
-
- int value;
-};
-typedef Rational __Rational;
-
-extern int operator>(const Rational&, const Rational&);
-
-class V {
-public:
- class Rational {
- public:
- static int x(const __Rational& value);
- };
-};
-
-int
-V::Rational::x(const __Rational& value)
-{
- return value > 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash47.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash47.C
deleted file mode 100644
index 9bdbb11..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash47.C
+++ /dev/null
@@ -1,94 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-const int TRUE = 1;
-const int FALSE = 0;
-
-class Rep {
-protected:
- Rep(): count(0)
- { }
- Rep(const Rep& other): count(0)
- { }
-
- Rep& operator=(const Rep& other)
- { /* DO NOT copy over other.count */
- return *this; }
-
-public: // TODO - for now
- // Because it is to hard to restrict these operations to the descendants
- // of Rep<REP> that we haven't named yet. So we just make them public.
- void inc()
- { count++; }
- void dec()
- { if (0 == --count) delete this; }
-private:
- unsigned count;
-};
-
-template<class REP>
-class Ref {
-public:
- Ref(): rep(0)
- { }
- Ref(const Ref<REP>& other): rep(other.rep)
- { if (rep) rep->inc(); }
- ~Ref()
- { if (rep) rep->dec();
- rep = 0; }
-
- Ref<REP>& operator=(const Ref<REP>& other)
- { if (rep != other.rep) {
- if (rep) rep->dec();
- rep = other.rep;
- if (rep) rep->inc(); }
- return *this; }
-
- bool null() const
- { return 0 == rep ? TRUE: FALSE; }
- bool valid() const
- { return 0 != rep ? TRUE: FALSE; }
-
- REP* operator->() const // should be a valid() reference
- { return rep; }
- operator REP*() const; // should be a valid() reference
-
-protected:
- REP *rep;
-
- Ref(REP *r): rep(r)
- { if (rep) rep->inc(); }
-
- Ref<REP>& operator=(REP *r)
- { if (rep != r) {
- if (rep) rep->dec();
- rep = r;
- if (rep) rep->inc(); }
- return *this; }
-};
-
-template<class REP>
-Ref<REP>::operator REP*() const // should be a valid() reference
-{ return rep; }
-
-template<class REP>
-inline int
-operator==(const Ref<REP>& a, const Ref<REP>& b)
-{ return (REP *) a == (REP *) b; }
-
-template<class REP>
-inline int
-operator!=(const Ref<REP>& a, const Ref<REP>& b)
-{ return (REP *) a != (REP *) b; }
-
-class XRep: public Rep {
-public:
- int i;
-};
-
-int
-main()
-{
- Ref<XRep> y;
-
- return y != y;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash48.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash48.C
deleted file mode 100644
index 6dc9da0..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash48.C
+++ /dev/null
@@ -1,22 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class internal {
- int field;
- int anotherfield;
-}; // ERROR - candidates are
-
-class bug {
- internal* numbers;
- bug(int size);
-}; // ERROR - several errors
-
-bug::bug(int size)
-{ // ERROR - candidates
- numbers = new internal(size * size);// ERROR - no match.*
-}
-
-int
-main()
-{
- bug test;// ERROR - no match
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash49.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash49.C
deleted file mode 100644
index 98a580d..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash49.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-#include<iostream.h>
-
-const int keys = 10;
-const int key[keys] = {6, key[1], 2, keys, 1, 7, 6, key[2], key[8]};
-
-void main()
-{ // ERROR - return type for main
- for(int i = 0; i < keys;) cout << key[i++] << " ";
- endl(cout);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash5.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash5.C
deleted file mode 100644
index 0e82e16..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash5.C
+++ /dev/null
@@ -1,107 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-// Should have been fixed by:
-//
-// Sun Jun 13 12:55:22 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
-//
-// * cp-cvt.c (build_default_binary_type_conversion): Look deeper into
-// what ARG1 and ARG2 are if they're POINTER_TYPEs.
-
-volatile void exit(int);
-
-class CountableSet
-{
- public:
- virtual ~CountableSet() { }
-};
-
-template<class T>
-class FixedSet : virtual public CountableSet
-{
- public:
- virtual int Get(int, T&) = 0;
- virtual ~FixedSet() { }
-};
-
-class ShrinkableSet
-{
- public:
- virtual int Remove(int) = 0;
-};
-
-template<class T>
-class PVSet : virtual public FixedSet<T>, virtual public ShrinkableSet
-{
- public:
- virtual void Append(const T&) = 0;
- virtual void operator+=(const T& a) { Append(a); }
- virtual ~PVSet() { }
-};
-
-template<class T>
-class MutSet : virtual public FixedSet<T>, virtual public FixedSet<T *>
-{
- protected:
- typedef T *Tp;
-
- public:
- void Append(const Tp& tp) { Append(*tp); }
-
- T& Access(int p)
- {
- Tp tp;
- Get(p, tp);
- return *tp;
- }
- virtual ~MutSet() { }
-};
-
-template <class T>
-class SimpleSet : virtual public MutSet<T>
-{
- protected:
- T *array;
- int size;
-
- virtual void Allocate(int s)
- {
- array = new T[s];
- }
- public:
- SimpleSet()
- {
- size = 0;
- array = ((void*)0) ; // ERROR - implicit conversion
- }
- int Get(int p, T& t)
- {
- t = array[p-1];
- return 1;
- }
- int Get(int p, T *& t)
- {
- t = &array[p-1];
- return 1;
- }
- inline void Append(const T& a)
- {
- array[size-1] = a;
- }
- inline int Remove(int n) { return 0; }
-};
-
-class Dummy
-{
- public:
- Dummy() {}
-};
-
-int
-main()
-{
- SimpleSet<Dummy *> bs1;
- int i, j;
- Dummy foo;
-
- bs1+=&foo;// ERROR - no .*
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash50.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash50.C
deleted file mode 100644
index fd87d75..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash50.C
+++ /dev/null
@@ -1,29 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class B
- {
-public:
- int i;
- };
-int operator & (const B &s) { return ( s.i );};
-
-
-
-
-
-class C
- {
-public:
- C &operator = (const C &x)
- {
- return *this;
- };
- };
-
-C &(C::*DD)(const C &x) = &C::operator=;
-
-int main()
-{
- ⅅ
-
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash51.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash51.C
deleted file mode 100644
index 3586eb4..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash51.C
+++ /dev/null
@@ -1,24 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class obj;
-
-typedef obj *obj_t;
-
-class obj {
-public:
- obj( const obj& o );
-};
-
-extern obj nowhere;
-
-class set: public obj {
- unsigned bit_vector;
-public:
- set( const obj& o );
- set& operator|=( const int q );
-};
-
-enum pin_enum { E_F, O_C, O_D, O_S, P_D, P_U, R, T, A, C };
-
-set t_q = ( ( ( ( ( ( set( nowhere ) |= E_F ) |= O_C ) |= O_D ) |= O_S )
- |= P_U ) |= P_D ) |= T;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C
deleted file mode 100644
index d10afdc..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash52.C
+++ /dev/null
@@ -1,13 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-#include <iostream.h>
-
-class A {
-public:
- friend A f(A &a);// ERROR - ambiguates.*
-};
-
-A &f(A &a) {// ERROR - new decl.*
- cout << "Blah\n";
-} // ERROR - non-void function
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash53.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash53.C
deleted file mode 100644
index 163f8e6..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash53.C
+++ /dev/null
@@ -1,24 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class A
-{
- public:
- class B
- {
- public:
- virtual ~B();
- };
-};
-
-template<int I>
-class C
-{
- public:
- class B
- : public A::B
- {
- }; // bug2.cc:18: Internal compiler error 233.
- // bug2.cc:18: Please submit a full bug report to `bug-g++@prep.ai.mit.edu'.
-};
-
-C<0> c;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash54.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash54.C
deleted file mode 100644
index 7d2a8a0..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash54.C
+++ /dev/null
@@ -1,9 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-int main()
-{
- int a[100], **p;
-
- p = &a[50];// ERROR - assignment to.*
-
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash55.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash55.C
deleted file mode 100644
index 47a7424..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash55.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
- extern f(int);// ERROR - ambiguates.*
-
- int& f(int x)
- {// ERROR - new declaration.*
- int local;// ERROR - warning
-
- local = x+2;
-
- return local;
- }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash56.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash56.C
deleted file mode 100644
index b5e997c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash56.C
+++ /dev/null
@@ -1,385 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-// Special g++ Options:
-
-const bool FALSE = 0;
-const bool TRUE = 1;
-class ListDProto {
-public:
- ListDProto();
- ListDProto(const ListDProto&);
- virtual ~ListDProto();
- void operator=(const ListDProto&);
- unsigned length() const;
- bool empty() const;
- void clear();
- void remove_head();
- void remove_tail();
- class link;
- class Vix {
- public:
- Vix();
- friend int operator==(void *v, const Vix& x)
- { return v == x.item; }// ERROR - list of candidates
- friend int operator==(const Vix& x, void *v)
- { return v == x.item; }// ERROR - candidate for call
- friend int operator!=(void *v, const Vix& x)
- { return v != x.item; }
- friend int operator!=(const Vix& x, void *v)
- { return v != x.item; }
- friend int operator==(const Vix& x1, const Vix& x2)
- { return x1.owner == x2.owner && x1.item == x2.item; }// ERROR - candidate for call
- friend int operator!=(const Vix& x1, const Vix& x2)
- { return x1.owner != x2.owner || x1.item != x2.item; }
- bool first;
- bool last;
- protected:
- friend class ListDProto;
- Vix(const ListDProto *o, link *i);
- const ListDProto *owner;
- private:
- link *item;
- };
- enum Action { NORMAL, REMOVE_CURRENT };
- Vix first() const;
- void first(Vix& x) const;
- void next(Vix& x) const;
- void next(Vix& x, Action a = NORMAL);
- Vix last() const;
- void last(Vix& x) const;
- void prev(Vix& x) const;
- void prev(Vix& x, Action a = NORMAL);
-protected:
- struct link {
- link *next;
- link *prev;
- link(link *n = 0, link *p = 0);
- virtual ~link();
- private:
- link(const link&);
- void operator=(const link&);
- };
- unsigned count;
- link *list_head;
- link *list_tail;
- virtual link *copy_item(link *old_item) const = 0;
- void prepend(link *item);
- void append(link *item);
- void prepend(const ListDProto& proto);
- void append(const ListDProto& proto);
- void remove(link *item);
- link *ref(const Vix&) const;
-};
-template<class T>
-class ListD: public ListDProto {
-public:
- void prepend(const T& item);
- void append(const T& item);
- const T& head() const;
- T& head();
- void head(T& fill) const;
- void remove_head()
- { ListDProto::remove_head(); }
- void remove_head(T& fill);
- const T& tail() const;
- T& tail();
- void tail(T& fill) const;
- void remove_tail()
- { ListDProto::remove_tail(); }
- void remove_tail(T& fill);
- class Vix: public ListDProto::Vix {
- public:
- Vix(): ListDProto::Vix()
- { }
- protected:
- friend class ListD<T>;
- Vix(const ListDProto::Vix& x): ListDProto::Vix(x)
- { }
- };
- Vix first() const
- { return ListDProto::first(); };
- void first(Vix& x) const
- { ListDProto::first(x); };
- void next(Vix& x, ListDProto::Action a = NORMAL) const
- { ListDProto::next(x, a); }// ERROR - .*// ERROR - .*
- Vix last() const
- { return ListDProto::last(); }
- void last(Vix& x) const
- { return ListDProto::last(x); }
- void prev(Vix& x, ListDProto::Action a = NORMAL) const
- { return ListDProto::prev(x, a); }
-protected:
- struct link_item: public ListDProto::link {
- T item;
- link_item(const T& i): link(0, 0), item(i)
- { }
- private:
- link_item(const link_item&);
- void operator=(const link_item&);
- };
-public:
- T& operator()(const Vix& x)
- { link_item *li = (link_item *) ref(x);
- return li->item; }
- const T& operator()(const Vix& x) const
- { link_item *li = (link_item *) ref(x);
- return li->item; }
-private:
- ListDProto::link *copy_item(ListDProto::link *old_item) const;
-};
-template<class T>
-class SetLD: private ListD<T> {
-public:
- SetLD();
- SetLD(const ListD<T>&);
- void add(const T& item);
- void add(const ListD<T>& other);
- void add(const SetLD<T>& other);
- void remove(const T& item);
- bool contains(const T& item) const;
- ListD<T>::length;
- ListD<T>::empty;
- ListD<T>::clear;
- typedef ListD<T>::Vix Vix;
- ListD<T>::first;
- ListD<T>::next;
- ListD<T>::operator();
-};
-extern "C" {
-extern void __eprintf (const char *, const char *, unsigned, const char *);
-}
-extern "C" {
-extern void __eprintf (const char *, const char *, unsigned, const char *);
-}
-template<class T>
-void
-ListD<T>::prepend(const T& item)
-{
- link *newl = new link_item(item);
- ListDProto::prepend(newl);
-}
-template<class T>
-void
-ListD<T>::append(const T& item)
-{
- link *newl = new link_item(item);
- ListDProto::append(newl);
-}
-template<class T>
-const T&
-ListD<T>::head() const
-{
- ((void) (( 0 != list_head ) ? 0 : (__eprintf ("%s:%u: failed assertion `%s'\n", "/home/wbaker/work/include/templates/ListD.body.h" , 50 , "0 != list_head" ), 0) )) ;
- link_item *h = (link_item *) list_head;
- return h->item;
-}
-template<class T>
-T&
-ListD<T>::head()
-{
- ((void) (( 0 != list_head ) ? 0 : (__eprintf ("%s:%u: failed assertion `%s'\n", "/home/wbaker/work/include/templates/ListD.body.h" , 59 , "0 != list_head" ), 0) )) ;
- link_item *h = (link_item *) list_head;
- return h->item;
-}
-template<class T>
-void
-ListD<T>::head(T& fill) const
-{
- ((void) (( 0 != list_head ) ? 0 : (__eprintf ("%s:%u: failed assertion `%s'\n", "/home/wbaker/work/include/templates/ListD.body.h" , 68 , "0 != list_head" ), 0) )) ;
- link_item *h = (link_item *) list_head;
- fill = h->item;
-}
-template<class T>
-void
-ListD<T>::remove_head(T& fill)
-{
- head(fill);
- remove_head();
-}
-template<class T>
-const T&
-ListD<T>::tail() const
-{
- ((void) (( 0 != list_tail ) ? 0 : (__eprintf ("%s:%u: failed assertion `%s'\n", "/home/wbaker/work/include/templates/ListD.body.h" , 85 , "0 != list_tail" ), 0) )) ;
- link_item *h = (link_item *) list_tail;
- return h->item;
-}
-template<class T>
-T&
-ListD<T>::tail()
-{
- ((void) (( 0 != list_tail ) ? 0 : (__eprintf ("%s:%u: failed assertion `%s'\n", "/home/wbaker/work/include/templates/ListD.body.h" , 94 , "0 != list_tail" ), 0) )) ;
- link_item *h = (link_item *) list_tail;
- return h->item;
-}
-template<class T>
-void
-ListD<T>::tail(T& fill) const
-{
- ((void) (( 0 != list_tail ) ? 0 : (__eprintf ("%s:%u: failed assertion `%s'\n", "/home/wbaker/work/include/templates/ListD.body.h" , 103 , "0 != list_tail" ), 0) )) ;
- link_item *h = (link_item *) list_tail;
- fill = h->item;
-}
-template<class T>
-void
-ListD<T>::remove_tail(T& fill)
-{
- ((void) (( 0 != list_tail ) ? 0 : (__eprintf ("%s:%u: failed assertion `%s'\n", "/home/wbaker/work/include/templates/ListD.body.h" , 112 , "0 != list_tail" ), 0) )) ;
- link_item *h = (link_item *) list_tail;
- fill = h->item;
-}
-template<class T>
-ListDProto::link *
-ListD<T>::copy_item(ListDProto::link *old) const
-{
- link_item *old_item = (link_item *) old;
- link_item *new_item = new link_item(old_item->item);
- return new_item;
-}
-template<class T>
-SetLD<T>::SetLD():
-ListD<T>()
-{ }
-template<class T>
-SetLD<T>::SetLD(const ListD<T>& other):
-ListD<T>(other)
-{ }
-template<class T>
-void
-SetLD<T>::add(const T& item)
-{
- if ( ! contains(item) )
- append(item);
-}
-template<class T>
-void
-SetLD<T>::add(const ListD<T>& other)
-{
- ListD<T>::Vix x;
- for (first(x); 0 != x; next(x))
- add(other(x));
-}
-template<class T>
-void
-SetLD<T>::add(const SetLD<T>& other)
-{
- const ListD<T>& lother = other;
- add(lother);
-}
-template<class T>
-void
-SetLD<T>::remove(const T& item)
-{
- Action a = NORMAL;
- Vix x;
- for (first(x); 0 != x && REMOVE_CURRENT != a; next(x, a))
- a = operator()(x) == item ? REMOVE_CURRENT: NORMAL;// ERROR - .*
-}
-template<class T>
-bool
-SetLD<T>::contains(const T& item) const
-{
- Vix x;
- for (first(x); 0 != x; next(x)) {
- if (operator()(x) == item)// ERROR - .*
- return TRUE;
- }
- return FALSE;
-}
-template<class T>
-int
-operator==(const SetLD<T>& a, const SetLD<T>& b)
-{
- if (a.length() != b.length())
- return FALSE;
- SetLD<T>::Vix x;
- for (a.first(x); 0 != x; a.next(x)) {
- if ( ! b.contains(a(x)) )
- return FALSE;
- }
- for (b.first(x); 0 != x; b.next(x)) {
- if ( ! a.contains(b(x)) )
- return FALSE;
- }
- return TRUE;
-}
-template<class T>
-int
-operator!=(const SetLD<T>& a, const SetLD<T>& b)
-{ return ! (a == b); }
-template<class T>
-int
-operator<=(const SetLD<T>& a, const SetLD<T>& b)
-{
- if (a.length() > b.length())
- return FALSE;
- SetLD<T>::Vix x;
- for (x=a.first(); 0 != x; a.next(x)) {
- if ( ! b.contains(a(x)) )
- return FALSE;
- }
- return TRUE;
-}
-template<class T>
-int
-operator<(const SetLD<T>& a, const SetLD<T>& b)
-{
- if (a.length() >= b.length())
- return FALSE;
- return a <= b;
-}
-template<class T>
-int
-operator>(const SetLD<T>& a, const SetLD<T>& b)
-{ return ! (a <= b); }
-template<class T>
-int
-operator>=(const SetLD<T>& a, const SetLD<T>& b)
-{ return ! (a < b); }
-class String { };
-class IcaseString: public String { };
-class SetLD< IcaseString >: public SetLD< String > { public: SetLD (): SetLD< String >() { }; SetLD (const ListD< IcaseString >& other): SetLD< String >() { ListD< IcaseString >::Vix x; for (other.first(x); 0 != x; other.next(x)) add(other(x)); }; SetLD (const SetLD & other): SetLD< String >(other) { }; const IcaseString & operator()(const Vix& x) const { return ( IcaseString &) SetLD< String >::operator()(x); } }; typedef SetLD< String > SetLD_String_IcaseString_old_tmp99; typedef SetLD< IcaseString > SetLD_String_IcaseString_new_tmp99;
-inline int operator== (const SetLD_String_IcaseString_new_tmp99& a, const SetLD_String_IcaseString_new_tmp99& b)
-{// ERROR - candidate for call
-const SetLD_String_IcaseString_old_tmp99& oa = a;
-const SetLD_String_IcaseString_old_tmp99& ob = b;
-return operator== (oa, ob); }
-inline int operator!= (const SetLD_String_IcaseString_new_tmp99& a, const SetLD_String_IcaseString_new_tmp99& b)
-{
-const SetLD_String_IcaseString_old_tmp99& oa = a;
-const SetLD_String_IcaseString_old_tmp99& ob = b;
-return operator!= (oa, ob); }
-inline int operator< (const SetLD_String_IcaseString_new_tmp99& a, const SetLD_String_IcaseString_new_tmp99& b)
-{
-const SetLD_String_IcaseString_old_tmp99& oa = a;
-const SetLD_String_IcaseString_old_tmp99& ob = b;
-return operator< (oa, ob); }
-inline int operator<= (const SetLD_String_IcaseString_new_tmp99& a, const SetLD_String_IcaseString_new_tmp99& b)
-{
-const SetLD_String_IcaseString_old_tmp99& oa = a;
-const SetLD_String_IcaseString_old_tmp99& ob = b;
-return operator<= (oa, ob); }
-inline int operator> (const SetLD_String_IcaseString_new_tmp99& a, const SetLD_String_IcaseString_new_tmp99& b)
-{
-const SetLD_String_IcaseString_old_tmp99& oa = a;
-const SetLD_String_IcaseString_old_tmp99& ob = b;
-return operator> (oa, ob); }
-inline int operator>= (const SetLD_String_IcaseString_new_tmp99& a, const SetLD_String_IcaseString_new_tmp99& b)
-{
-const SetLD_String_IcaseString_old_tmp99& oa = a;
-const SetLD_String_IcaseString_old_tmp99& ob = b;
-return operator>= (oa, ob); } ;
-typedef SetLD<IcaseString> SLDiS;
-static void
-nop(int i)
-{
- SetLD<IcaseString> x, y;
- nop(x == y);
- nop(x != y);
-nop(x < y);
-nop(x <= y);
-nop(x > y);
-nop(x >= y);
-}
-
-template class SetLD<String>;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash57.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash57.C
deleted file mode 100644
index 5032b3f..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash57.C
+++ /dev/null
@@ -1,13 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class foo {
-private:
- char buffer[1024];
-public:
- foo();
-};
-
-int main()
-{
- static foo& a = *(new foo);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash58.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash58.C
deleted file mode 100644
index 922290f..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash58.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class X {
-public:
-void doit();
-};
-
-X::::doit()// ERROR - (syntax|parse) error.*
-{
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash6.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash6.C
deleted file mode 100644
index a6527a5..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash6.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-// Should be fixed by:
-// Sun Jun 13 12:55:22 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
-//
-// * cp-decl.c (start_function): Avoid a null-reference on CTYPE.
-
-template<int>
-class Program {
-} ;
-
-class Program<0> {
-public:
- inline friend float EvalNextArg()
- { return 1.0 ; }
-} ;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash60.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash60.C
deleted file mode 100644
index b2af431..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash60.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class X
-{
-public:
- X ();
- int f[4];
-};
-
-// Note that we mistakenly initialize the array data member as if it
-// was scalar
-X::X () : f (0) {}// ERROR - .*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash61.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash61.C
deleted file mode 100644
index 4d3bbc4..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash61.C
+++ /dev/null
@@ -1,5 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
- template <class TP> class sapp { };
- class foo {};
- extern foo& __iomanip_setw (foo&, TP);// ERROR - type spec.*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash62.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash62.C
deleted file mode 100644
index 77b9fc8..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash62.C
+++ /dev/null
@@ -1,32 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-#include <iostream.h>
-
- void
- fubar(ostream* out, const char* string)
- {
- (*out) << string << endl;
- return;
- }
-
- int
- main()
- {
- // Declare a ref and a pointer to the same ostream.
- //
- ostream* out = &cerr;
- ostream& die = cerr;
-
- // Valid call to fubar.
- //
- fubar(out, "First line.");
-
- // Invalid call to fubar. (1st arg is an ostream&. fubar expects
- // ostream*.)This should be a syntax error, but g++ does not catch it.
- // Call to this function results in a bus error in fubar when the 1st
- // arg is dereferenced.
- //
- fubar(die, "Second line.");// ERROR - cannot convert .die.*
-
- return 1;
- }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash63.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash63.C
deleted file mode 100644
index 84f8fc5..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash63.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class String
- {
- public:
- String (const char *str);
- };
-
-class UnitList
- {
- public:
- UnitList (...);
- };
-
-UnitList unit_list (String("keV"));
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash64.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash64.C
deleted file mode 100644
index 3102418..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash64.C
+++ /dev/null
@@ -1,19 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-typedef long unsigned int size_t;
-typedef void (*RF_Ptr)(void *);
-
-struct _im_pers_mem_spec {
- inline _im_pers_mem_spec(void );
- inline _im_pers_mem_spec(auto int of, auto int n);
-};
-
-struct _type_desc {
- _type_desc(char *, int , RF_Ptr , int , int ,...);
-};
-
-struct metatype { int base_list; };
-
-static _type_desc _type_metatype("metatype", sizeof(metatype),
- (RF_Ptr)0, 0, 1, 1,
- _im_pers_mem_spec( ((size_t)&((( metatype *)0)-> base_list )) , 1));
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash65.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash65.C
deleted file mode 100644
index 132651e..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash65.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class X {
-public:
- virtual const char* XY(const void* val) const = 0;
-};
-
-
-class Y : public X {
-public:
- using X::xy;// ERROR - no memb.*
-
- using X::z;// ERROR - no memb.*
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash66.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash66.C
deleted file mode 100644
index 878957b..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash66.C
+++ /dev/null
@@ -1,137 +0,0 @@
-// Build don't link:
-// Special g++ Options: -O
-// GROUPS passed old-abort
-typedef unsigned char uchar;
-typedef unsigned short ushort;
-typedef unsigned long ulong;
-extern int swap_endian;
-inline ushort
-swapshort(ushort value)
-{
- value &= 0xffff;
- return ((value << 8) | (value >> 8));
-}
-struct eshort
-{
- ushort data;
- operator ushort() { return swap_endian ? swapshort(data) : data;}
- eshort(ushort t) { data = swap_endian ? swapshort(t) : t;}
- eshort() {}
-};
-inline ulong
-swaplong(ulong value)
-{
- ulong v = (value << 16) | (value >> 16);
- return ((v >> 8) & 0x00ff00ff) | ((v << 8) & 0xff00ff00);
-};
-struct elong
-{
- ulong data;
- operator ulong() { return swap_endian ? swaplong(data) : data;}
- elong(ulong t) { data = swap_endian ? swaplong(t) : t; }
- elong() {}
-};
-struct digiheader
-{
- uchar type[2];
- eshort soft_version;
- eshort lo_boot_rev;
- eshort hi_boot_rev;
- eshort load_segment;
- eshort length;
- eshort exec_start;
- eshort image_offset;
- elong startup_code[2];
- elong checksum;
-};
-extern void uncompress(uchar* buf, ulong len);
-extern ulong compress(char* filename, uchar* buffer, ulong);
-struct filehdr
-{
- eshort f_magic;
- eshort f_nscns;
- elong f_timdat;
- elong f_symptr;
- elong f_nsyms;
- eshort f_opthdr;
- eshort f_flags;
-};
-struct aouthdr
-{
- eshort magic;
- eshort vstamp;
- elong tsize;
- elong dsize;
- elong bsize;
- elong entry;
- elong text_start;
- elong data_start;
- elong bss_start;
- elong gprmask;
- elong cprmask[4];
- elong gp_value;
-};
-struct scnhdr
-{
- char s_name[8];
- elong s_paddr;
- elong s_vaddr;
- elong s_size;
- elong s_scnptr;
- elong s_relptr;
- elong s_lnnoptr;
- eshort s_nreloc;
- eshort s_nlnno;
- elong s_flags;
-};
-int file_little_endian;
-int host_little_endian;
-int swap_endian;
-int docheck;
-int expand;
-ulong memsize;
-ulong compression_quality;
-char *compressfile;
-int debug_level;
-extern "C" int getopt (int, char**, char*);
-int
-main(int argc, char** argv)
-{
- uchar checksum;
- uchar docrc;
- ulong len;
- ulong maxlen;
- int i;
- int c;
- int magic;
- int tsize;
- int dsize;
- int quality;
- char dummy;
- uchar* code;
- uchar* buf;
- char* ap;
- digiheader *dh;
- compression_quality = 10000;
- docheck = 0;
- while ((c = getopt(argc, argv, "Ccdf:k:q:x:")) != -1)
- {
- switch (c)
- {
- default:
- goto usage;
- }
- }
- if ((expand && (docheck || compressfile || quality)) ||
- (quality && !compressfile))
- {
- usage:
- return(2);
- }
- if (compressfile)
- {
- dh->image_offset = len;
-
- len += compress(compressfile, code + len, maxlen - len);
- }
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash67.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash67.C
deleted file mode 100644
index f63ba5d..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash67.C
+++ /dev/null
@@ -1,3 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-#pragma comment(exestr, "@(#) errno.h 10.2 92/03/26 ")
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash68.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash68.C
deleted file mode 100644
index b209bd8..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash68.C
+++ /dev/null
@@ -1,28 +0,0 @@
-// Build don't link:
-// Special g++ Options: -w -O
-// GROUPS passed old-abort
-class RWDlist
-{
-public:
- RWDlist& operator=(const RWDlist&);
-};
-class DataItemRWGDlist : public RWDlist {};
-
-class Base {};
-class DataItemList : public Base
-{
- private:
- DataItemRWGDlist m_diList;
-};
-
-class StatementGroup
-{
- public:
- DataItemList dataItemList;
- StatementGroup(const StatementGroup&);
-};
-
-StatementGroup::StatementGroup(const StatementGroup& sg)
-{
- dataItemList = sg.dataItemList;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash7.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash7.C
deleted file mode 100644
index 19476fc..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash7.C
+++ /dev/null
@@ -1,48 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-
-template<class T>
-class Vector
-{
- int sz;
- T *v;
-public:
- Vector (int s) : sz (s) { v = new T[sz]; }
- ~Vector () { delete[] v; }
- T &operator[] (int i) { return v[i]; }
- int size () { return sz; }
-};
-
-template<class T>// ERROR - previous definition of T
-struct Comparator
-{
- typedef T T;// ERROR - use of template type T in typedef to T
- static int lessthan (T &a, T &b) { return a < b; }
-};
-
-template<class Comp>
-struct Sort
-{
- static void sort (Vector<Comp::T> &);// ERROR - use of bad T
-};
-
-template<class Comp>
-void Sort<Comp>::sort (Vector<Comp::T> &v)// ERROR - use of bad T
-{
- int n = v.size ();
-
- for (int i = 0; i < n - 1; i++)
- for (int j = n - 1; i < j; j--)
- if (Comp::lessthan (v[j], v[j - 1]))
- {
- typename Comp::T temp = v[j];
- v[j] = v[j - 1];
- v[j - 1] = temp;
- }
-}
-
-void
-f (Vector<int> &vi)
-{
- Sort<Comparator<int> >::sort (vi);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash8.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash8.C
deleted file mode 100644
index 8990c46..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash8.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-template<int a, int b>
-class Elvis
-{// ERROR - in template.*
-} ;
-
-template<int a>
-class Elvis<0>
-{ // ERROR - incorrect number of parameters
- int geta() { return a ; }
-} ;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/crash9.C b/gcc/testsuite/g++.old-deja/g++.brendan/crash9.C
deleted file mode 100644
index a4155ef..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/crash9.C
+++ /dev/null
@@ -1,24 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-class A {};
-
-class SimQuery
-{
-public:
- SimQuery();
- ~SimQuery();
- int SetMeshFile(char name[]);
-protected:
- A& scaling;
- A* mesh;
-};
-
-SimQuery::SimQuery():scaling(A) {}// ERROR - .*
-
-SimQuery::~SimQuery() {}// ERROR -
-
-int SimQuery::SetMeshFile(char name[])
-{// ERROR -
- mesh = new C;// ERROR - .*
- return 0; // needed to avoid warning of reaching end of non-void fn
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/ctors1.C b/gcc/testsuite/g++.old-deja/g++.brendan/ctors1.C
deleted file mode 100644
index eaf4871..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/ctors1.C
+++ /dev/null
@@ -1,27 +0,0 @@
-// GROUPS passed constructors
-// Check that global level object constructors get called.
-
-extern "C" void printf (char *, ...);
-
-struct base {
- int f1;
- int f2;
- base (int arg1, int arg2);
-};
-
-
-base global_base(0x55, 0xff);
-
-int main ()
-{
- if ((global_base.f1 != 0x55) || (global_base.f2 != 0xff))
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-}
-
-base::base(int arg1, int arg2)
-{
- f1 = arg1;
- f2 = arg2;
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/ctors2.C b/gcc/testsuite/g++.old-deja/g++.brendan/ctors2.C
deleted file mode 100644
index 2f83ce1..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/ctors2.C
+++ /dev/null
@@ -1,28 +0,0 @@
-// GROUPS passed constructors
-// Check that sub-words sized class members are correctly set
-// by constructors.
-
-extern "C" void printf (char *, ...);
-
-struct base {
- int f1 : 8;
- int f2 : 8;
- base (int arg1, int arg2);
-};
-
-
-base global_base(0x55, 0x7e);
-
-int main ()
-{
- if ((global_base.f1 != 0x55) || (global_base.f2 != 0x7e))
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-}
-
-base::base(int arg1, int arg2)
-{
- f1 = arg1;
- f2 = arg2;
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/ctors3.C b/gcc/testsuite/g++.old-deja/g++.brendan/ctors3.C
deleted file mode 100644
index 755d547..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/ctors3.C
+++ /dev/null
@@ -1,17 +0,0 @@
-// Build don't link:
-// GROUPS passed constructors
-class A;
-
-class B {
-public:
- B();
-static A sa;
-};
-
-class A {
-public:
- A(int i);
-};
-
-A B::sa(1);
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/cvt1.C b/gcc/testsuite/g++.old-deja/g++.brendan/cvt1.C
deleted file mode 100644
index 57f3b42..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/cvt1.C
+++ /dev/null
@@ -1,44 +0,0 @@
-// Build don't link:
-// GROUPS passed conversions
-#include <iostream.h>
-
-class Thing
-{
-public:
- typedef enum { GOOD_THING, BAD_THING, } ThingType ; // ERROR - comma
- Thing (ThingType type) : thingType (type) { }
- ~Thing () { }
-private:
- ThingType thingType ;
-} ;
-
-class Group
-{
-public:
- typedef enum { THIS_GROUP, THAT_GROUP, } GroupType ; // ERROR - comma
- Group (GroupType type) : groupType (type), groupCount (0) { }
- ~Group () { }
- void append (Thing* const &entry) { groupCount ++ ; }
- operator GroupType () const { return groupType ; }
- operator int () const { return groupCount ; } // remove this and problem gone
-
-private:
- int groupCount ;
- GroupType groupType ;
-} ;
-
-inline Group& operator += (Group& g, Thing* const t)
-{
- g.append (t) ;
- return g ; // complaint is here
-}
-
-int
-main (int argc, char** argv)
-{
- Group g (Group::THIS_GROUP) ;
-
- g += new Thing (Thing::GOOD_THING) ;
- cout << "Group type is " << (Group::GroupType) g << endl ;
- return 0 ;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/cvt2.C b/gcc/testsuite/g++.old-deja/g++.brendan/cvt2.C
deleted file mode 100644
index 76ae156..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/cvt2.C
+++ /dev/null
@@ -1,9 +0,0 @@
-// Build don't link:
-// GROUPS passed conversions
-void f(const short & s) { }
-
- int
-main() {
- f(0);
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/cvt3.C b/gcc/testsuite/g++.old-deja/g++.brendan/cvt3.C
deleted file mode 100644
index 6ab8465..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/cvt3.C
+++ /dev/null
@@ -1,48 +0,0 @@
-// Build don't link:
-// GROUPS passed conversions
-class GttObject {};
-class GctObject: virtual public GttObject {};
-class NDAMObject: virtual public GttObject, virtual public GctObject {};
-class GctHashObject: virtual public GctObject {};
-
-class GctRef: virtual public GctHashObject
-{ public: operator void*() const; };
-
-class NDAMAssemblerObject: virtual public NDAMObject {};
-class GctReferenceObject: virtual public GctHashObject {};
-class NDAMValue: virtual public NDAMAssemblerObject, public GctReferenceObject {};
-
-class nnyacc;
-class NDAMValueRef : virtual public NDAMObject, public GctRef
-{
- NDAMValue *operator->() const;
- operator NDAMValue *() const;
-friend class nnyacc;
-};
-
-typedef void* Pix;
-class NDAMValueRefSLList
-{
-public:
- NDAMValueRefSLList();
- NDAMValueRefSLList(const NDAMValueRefSLList& a);
- ~NDAMValueRefSLList();
- NDAMValueRef& operator () (Pix p) const;
-};
-
-struct bar
-{
- NDAMValueRefSLList *valueList;
-};
-
-class nnyacc
-{
-public:
- static void assign(void*& lval, void*& rval); // ERROR - candidates
-};
-
-void
-foo (bar yylval, bar *yyvsp)
-{
- nnyacc::assign(yylval.valueList, yyvsp[0].valueList);// ERROR -
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/cvt4.C b/gcc/testsuite/g++.old-deja/g++.brendan/cvt4.C
deleted file mode 100644
index 3d9f475..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/cvt4.C
+++ /dev/null
@@ -1,27 +0,0 @@
-// Build don't link:
-// GROUPS passed conversions
-class A {};
-
-template <class TP>
-class B
-{
- A &(*_f) (A &, TP);
- TP _a;
-public:
- B (A &(*f) (A &, TP), TP a) : _f (f), _a (a) {}
- friend A &operator<< (A &o, const B<TP> &m)
- { (*m._f) (o, m._a); return o; }
-};
-
-A &setw (A &, int);
-B<int> setw (int n)
-{
- return B<int> (setw, n);
-}
-
-A x;
-
-void f ()
-{
- x << setw (2);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/cvt5.C b/gcc/testsuite/g++.old-deja/g++.brendan/cvt5.C
deleted file mode 100644
index 5eeea6e6..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/cvt5.C
+++ /dev/null
@@ -1,27 +0,0 @@
-// GROUPS passed conversions
-// Build don't link:
-typedef unsigned long Array[3];
-
-void sample(const unsigned long (&an_array)[3]);
-
-class Sample
- {
- public:
- void simple(const Array &an_array);
- static void sample(const Array &an_array);
- };
-
-class A
- {
- public:
- Array array;
- };
-
- Sample s;
-
- void simple(const A &a)
- {
- s.simple(a.array);
- sample(a.array);
- Sample::sample(a.array);
- }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/def-args1.C b/gcc/testsuite/g++.old-deja/g++.brendan/def-args1.C
deleted file mode 100644
index 55efc52..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/def-args1.C
+++ /dev/null
@@ -1,9 +0,0 @@
-// Build don't link:
-// PRMS Id: 10860
-class Beige
-{
-public:
- static int yellow();
- void white(int green = yellow());
- void aqua(int green = Beige::yellow());
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/def-fns1.C b/gcc/testsuite/g++.old-deja/g++.brendan/def-fns1.C
deleted file mode 100644
index af97526..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/def-fns1.C
+++ /dev/null
@@ -1,22 +0,0 @@
-// Build don't link:
-// GROUPS passed default-functions
-class dictionary {
-public:
- dictionary (int);
-};
-
-class symbol {
-public:
- symbol ();
-};
-
-// a default ctor should not be generated for hyphenation_language,
-// since a ctor has already been declared; if one is generated, there
-// will be an error about not enough args to the ctor for dictionary,
-// since dictionary only defines a ctor taking an int (it ALSO should
-// not get a default ctor)
-struct hyphenation_language {
- symbol name;
- dictionary exceptions;
- hyphenation_language(symbol nm) : name(nm), exceptions(501) {}
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/delete1.C b/gcc/testsuite/g++.old-deja/g++.brendan/delete1.C
deleted file mode 100644
index 816c300..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/delete1.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// Special g++ Options: -pedantic-errors
-// GROUPS passed operator-delete
-/* ARM $5.3.4 */
-void f(char *p, char *q[], const char *r, const char *s[])
-{
- delete 0; /* illegal: non-pointer */// ERROR - .*expected pointer.*
- delete (char*)0; /* no effect */
- delete p;
- delete[] q;
- delete[4] q; /* ANSI forbids size arg */// ERROR - anachronistic .*
- delete r; /* no longer illegal: const */
- delete[] s;
- delete[4] s; /* ANSI forbids size arg */// ERROR - anachronistic.*
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/delete2.C b/gcc/testsuite/g++.old-deja/g++.brendan/delete2.C
deleted file mode 100644
index f2bacde..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/delete2.C
+++ /dev/null
@@ -1,25 +0,0 @@
-// GROUPS passed operator-delete
-// Check that using the delete operator with a null pointer
-// is allowed (as called for by The Book, pg. 259)
-
-extern "C" void printf (char *, ...);
-
-struct base {
- int member;
-};
-
-base* bp;
-
-void test ()
-{
- delete bp;
-}
-
-int main ()
-{
- bp = (base *) 0;
- test ();
-
- printf ("PASS\n");
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/dtors1.C b/gcc/testsuite/g++.old-deja/g++.brendan/dtors1.C
deleted file mode 100644
index dbbfa80..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/dtors1.C
+++ /dev/null
@@ -1,56 +0,0 @@
-// GROUPS passed destructors
-// Check that when an object of a derived class is (implicitly)
-// destructed (on exit from the block in which it is declared)
-// that the destructor for the base class also gets executed.
-//
-// (also check that this execution doesn't seg-fault)
-
-extern "C" void printf (char *, ...);
-
-int derived_destructed;
-int base_destructed;
-
-struct base {
- int base_data_member;
-
- base()
- {
- base_data_member = 0x5e5e;
- }
- ~base()
- {
- base_destructed = 0x781f;
- }
-};
-
-struct derived : public base {
- int derived_data_member;
-
- derived()
- {
- derived_data_member = 0xe5e5;
- }
- ~derived()
- {
- derived_destructed = 0xf178;
- }
-};
-
-
-void test2 ();
-
-int main ()
-{
- test2 ();
- if ((base_destructed != 0x781f) || (derived_destructed != 0xf178))
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-}
-
-void test2 ()
-{
- derived derived_object;
-
- derived_object.derived_data_member = 99;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/dtors2.C b/gcc/testsuite/g++.old-deja/g++.brendan/dtors2.C
deleted file mode 100644
index 511ab7f..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/dtors2.C
+++ /dev/null
@@ -1,74 +0,0 @@
-// GROUPS passed destructors
-// Check that virtual destructors work correctly. Specifically,
-// check that when you destruct an object of a derived class for
-// which the base class had an explicitly declared virtual destructor
-// no infinite recursion occurs.
-//
-// Bug description:
-// The generated g++ code apparently calls the base class destructor via
-// the virtual table, rather than directly. This, of course, results in the
-// infinite recursion.
-
-extern "C" void printf (char *, ...);
-
-int errors = 0;
-
-struct base {
- int member;
- base();
- virtual ~base();
-};
-
-base::base()
-{
-}
-
-base::~base()
-{
-}
-
-struct derived : public base
-{
- int member;
- derived();
- ~derived();
-};
-
-derived::derived() : base()
-{
-}
-
-int derived_destructor_calls = 0;
-
-extern void exit (int);
-
-derived::~derived()
-{
- if (++derived_destructor_calls > 2)
- errors++;
-}
-
-void test ();
-
-int main ()
-{
- test ();
-
- if (errors)
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-
- return 0;
-}
-
-base* bp;
-
-void test()
-{
- derived a;
-
- a.member = 99;
- bp = new derived;
- delete bp;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/dtors3.C b/gcc/testsuite/g++.old-deja/g++.brendan/dtors3.C
deleted file mode 100644
index a1ca853..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/dtors3.C
+++ /dev/null
@@ -1,66 +0,0 @@
-// GROUPS passed destructors
-// Check that member and base classes get properly destructed
-// when an object of a derived class is destructed via a pointer
-// to it which only has a "compile-time" type of "pointer-to-base".
-//
-// Note that in order for this test to work properly, the destructor
-// for the base class should be explicitly declared to be virtual.
-
-extern "C" void printf (char *, ...);
-
-int member_destructor_calls = 0;
-int middle_destructor_calls = 0;
-
-struct member_type {
- int data_member;
- member_type () {}
- ~member_type ();
-};
-
-struct base {
- int data_member;
- base () {}
- virtual ~base ();
-};
-
-struct middle : public base {
- member_type member1;
- member_type member2;
- middle () {}
- ~middle (); // should be implicitly virtual
-};
-
-struct derived : public middle {
- member_type member1;
- member_type member2;
- //~derived () {}
-};
-
-int main ()
-{
- base* bp = new derived;
- delete bp;
- derived *dp = new derived;
- delete dp;
-
- if ((member_destructor_calls != 8) || (middle_destructor_calls != 2))
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-
- return 0;
-}
-
-member_type::~member_type ()
-{
- member_destructor_calls++;
-}
-
-base::~base ()
-{
-}
-
-middle::~middle ()
-{
- middle_destructor_calls++;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/eh1.C b/gcc/testsuite/g++.old-deja/g++.brendan/eh1.C
deleted file mode 100644
index a668306..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/eh1.C
+++ /dev/null
@@ -1,62 +0,0 @@
-// Special g++ Options: -O
-// PRMS Id: 10776
-
-extern "C" void printf (char *, ...);
-
-class Foo
-{
- public:
- Foo(int n) : n_(n) { }
- int f() { return n_; }
-
- int badTest();
- int goodTest();
-
- private:
-
- int n_;
-};
-
-int Foo::badTest()
-{
- try {
- throw int(99);
- }
-
- catch (int &i) {
- n_ = 16;
- }
-
- return n_;
- // On the sparc, the return will use a ld [%l0],%i0 instruction.
- // However %l0 was clobbered at the end of the catch block. It was
- // used to do an indirect call.
-}
-
-
-int Foo::goodTest()
-{
- int n;
-
- try {
- throw int(99);
- }
-
- catch (int &i) {
- n = 16;
- }
-
- return n_;
- // The return will use a ld [%l2],%i0 instruction. Since %l2
- // contains the "this" pointer this works.
-}
-
-int main()
-{
- Foo foo(5);
- foo.goodTest();
- foo.badTest();
-
- // the badTest will have failed
- printf ("PASS\n");
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/enum-clash.C b/gcc/testsuite/g++.old-deja/g++.brendan/enum-clash.C
deleted file mode 100644
index 68639a1..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/enum-clash.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// Build don't link:
-// Special g++ Options: -pedantic-errors
-// GROUPS passed arm
-enum color {red, yellow, green=20, blue};
-color c = 1; // this should be an error// ERROR - .*
-int i = yellow;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/enum1.C b/gcc/testsuite/g++.old-deja/g++.brendan/enum1.C
deleted file mode 100644
index 9cc3ed8..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/enum1.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// Build don't link:
-// GROUPS passed enums
-class foo {
-public:
- enum bar { baz = 1, bat = 7 };
-};
-
-class derv : public foo { };
-
-int main()
-{
- foo::bar x = foo::baz;
- derv::bar y = derv::bat;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/enum10.C b/gcc/testsuite/g++.old-deja/g++.brendan/enum10.C
deleted file mode 100644
index 5c955d3..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/enum10.C
+++ /dev/null
@@ -1,21 +0,0 @@
-// Build don't link:
-// GROUPS passed enums
-class Type
-{
- public:
-
- enum name
- {
- A
- };
-};
-
-class A
-{
-};
-
-class B: public A
-{
- public:
- B();
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/enum11.C b/gcc/testsuite/g++.old-deja/g++.brendan/enum11.C
deleted file mode 100644
index 7705aa3..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/enum11.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// Build don't link:
-// GROUPS passed enums
-class X
-{
- enum
- {
- oneMask = 0x0000FFFF,
- twoMask = 0x000F0000,
- thiMask = 0xFFF00000,
- }; // ERROR - comma
- unsigned int foo;
-
-public:
- X (int) : foo (oneMask | twoMask ) {} // No warning
- X () : foo (oneMask | twoMask | thiMask) {} // Warning
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/enum12.C b/gcc/testsuite/g++.old-deja/g++.brendan/enum12.C
deleted file mode 100644
index 7d4eb7d..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/enum12.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-// GROUPS passed enums
-enum Bool { False, True };
-
-enum Bool object;
-
-struct S
-{
- Bool field:1;
-
- void copy_enum_bit_field () const { object = field; }
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/enum13.C b/gcc/testsuite/g++.old-deja/g++.brendan/enum13.C
deleted file mode 100644
index ea6dfa7..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/enum13.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// GROUPS passed enums
-enum COLOR { red, green, blue };
-
-struct S {
- COLOR color:2;
-};
-
-COLOR color;
-S object;
-
-void fubar ()
-{
- color = object.color;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/enum14.C b/gcc/testsuite/g++.old-deja/g++.brendan/enum14.C
deleted file mode 100644
index 192a2b4..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/enum14.C
+++ /dev/null
@@ -1,4 +0,0 @@
-// Build don't link:
-// Special g++ Options: -fshort-enums
-// GROUPS passed enums
- enum E { A = 0x80000000 };
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/enum2.C b/gcc/testsuite/g++.old-deja/g++.brendan/enum2.C
deleted file mode 100644
index 1c5c50b..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/enum2.C
+++ /dev/null
@@ -1,19 +0,0 @@
-// Build don't link:
-// GROUPS passed enums
-class foo {
-public:
- enum bar { baz = 1, bat = 7 };
-};
-
-class foo2 {
-public:
- enum bar2 { baz2 = 1, bat2 = 7 };
-};
-
-class derv : public foo, public foo2 { };
-
-int main()
-{
- foo::bar x = foo::baz;
- derv::bar2 y = derv::bat2;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/enum3.C b/gcc/testsuite/g++.old-deja/g++.brendan/enum3.C
deleted file mode 100644
index 38b7d3c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/enum3.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// GROUPS passed enums
-enum foo
-{
- x = 0
-};
-
-enum bar
-{
- // this used to say `x' wasn't a constant, because build_enumerator
- // was getting the value of x wrapped around a NOP_EXPR. It now
- // strips them off before working on it, so we shouldn't get any
- // errors for this.
- y = (x + 0x0000)
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/enum4.C b/gcc/testsuite/g++.old-deja/g++.brendan/enum4.C
deleted file mode 100644
index 826ccd3..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/enum4.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// GROUPS passed enums
-class X {
-public:
- enum { a };
-};
-
-enum { b = 1 };
-enum ok { y = b };
-enum notok { z = X::a };
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/enum5.C b/gcc/testsuite/g++.old-deja/g++.brendan/enum5.C
deleted file mode 100644
index 32134ef..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/enum5.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// Special g++ Options: -pedantic-errors
-// GROUPS passed enums
-enum Thing { FIRST, SECOND } ;
-
-int main()
-{
- Thing x = FIRST ;
- x = 27 ; // this line should be a type error.// ERROR - .*
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/enum6.C b/gcc/testsuite/g++.old-deja/g++.brendan/enum6.C
deleted file mode 100644
index 8c5c9ad..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/enum6.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// Build don't link:
-// GROUPS passed enums
-class X {
- private:
- enum E1 {a1, b1}; // ERROR - private
- public:
- enum E2 {a2, b2};
- };
-
-void h(X* p) {
- X::E2 e2;
- int x2 = X::a2;
-
- X::E1 e1;
- int x1 = X::a1; // ERROR - within this context
- }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/enum7.C b/gcc/testsuite/g++.old-deja/g++.brendan/enum7.C
deleted file mode 100644
index 5a397d7..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/enum7.C
+++ /dev/null
@@ -1,7 +0,0 @@
-// Build don't link:
-// GROUPS passed enums
-enum color { red, green, blue, orange, brown };
-
-struct s {
- enum color field:2; // ERROR - too small
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/enum8.C b/gcc/testsuite/g++.old-deja/g++.brendan/enum8.C
deleted file mode 100644
index d9380ad..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/enum8.C
+++ /dev/null
@@ -1,25 +0,0 @@
-// Build don't link:
-// GROUPS passed enums
-class foo1
-{
- public:
- enum foo1_enum
- {
- ENUM1,
- ENUM2,
- }; // ERROR - comma
-};
-
-
-class foo2
-{
- private:
- enum foo1::foo1_enum Enum;
-};
-
-
-class foo3
-{
- private:
- foo1::foo1_enum Enum;
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/enum9.C b/gcc/testsuite/g++.old-deja/g++.brendan/enum9.C
deleted file mode 100644
index f04deb1..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/enum9.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// GROUPS passed enums
-enum fig {
- figgy,
- pudding,
-}; // ERROR - comma
-
-class X {
-public:
- static fig (*open)(void *thing, const char *filename);
- static fig (*parse)(void *thing);
-};
-
-enum fig (*X::open)(void *thing, const char *filename) = 0;
-fig (*X::parse)(void *thing) = 0;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg1.C b/gcc/testsuite/g++.old-deja/g++.brendan/err-msg1.C
deleted file mode 100644
index 9450d76..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg1.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// Build don't link:
-// GROUPS passed error-messages
-class A { };
-
-int i = A::_ter;// ERROR - ._ter.*
-int j = A::term;// ERROR - .term.*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg10.C b/gcc/testsuite/g++.old-deja/g++.brendan/err-msg10.C
deleted file mode 100644
index 24ddcaa..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg10.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// Build don't link:
-// GROUPS passed error-messages
-class foo {
-public:
- virtual static int f () = 0;// ERROR - member `f' cannot be declared both virtual and static.*
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg11.C b/gcc/testsuite/g++.old-deja/g++.brendan/err-msg11.C
deleted file mode 100644
index de5ed8a..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg11.C
+++ /dev/null
@@ -1,3 +0,0 @@
-// Build don't link:
-// GROUPS passed error-messages
-void foo (mutable int x);// ERROR - non-member `x' cannot be declared `mutable'.*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg12.C b/gcc/testsuite/g++.old-deja/g++.brendan/err-msg12.C
deleted file mode 100644
index 0b59ba0..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg12.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// Build don't link:
-// GROUPS passed error-messages
-class foo {
-public:
- friend mutable int x ();// ERROR - non-object member `x' cannot be declared `mutable'
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg2.C b/gcc/testsuite/g++.old-deja/g++.brendan/err-msg2.C
deleted file mode 100644
index 0bfb4c2..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg2.C
+++ /dev/null
@@ -1,4 +0,0 @@
-// Build don't link:
-// GROUPS passed error-messages
-typedef void (*pfv)(double, double);
-extern "C" typedef void (*pfv)(double, double);// ERROR - multiple.*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg3.C b/gcc/testsuite/g++.old-deja/g++.brendan/err-msg3.C
deleted file mode 100644
index 1d115e6..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg3.C
+++ /dev/null
@@ -1,20 +0,0 @@
-// Build don't link:
-// GROUPS passed error-messages
-#include <fstream.h>
-#include <iomanip.h>
-
-// This error should not appear:
-// bug.C: In method `test::test(const class test &)':
-// bug.C:8: field `' not in immediate context
-
-class test{
-public:
- int flags;
- test() {};
- };
-
-int main()
-
-{
-return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg4.C b/gcc/testsuite/g++.old-deja/g++.brendan/err-msg4.C
deleted file mode 100644
index 72f6150..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg4.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// GROUPS passed error-messages
-class X {
-public:
- static int x;// ERROR - previous.*
- static int y;// ERROR - previous.*
-};
-
-unsigned X::x;// ERROR - conflict.*
-unsigned X::y;// ERROR - conflict.*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg5.C b/gcc/testsuite/g++.old-deja/g++.brendan/err-msg5.C
deleted file mode 100644
index 37b956c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg5.C
+++ /dev/null
@@ -1,4 +0,0 @@
-// Build don't link:
-// GROUPS passed error-messages
-class foo {};
-~foo () {}// ERROR - destructors must be member functions.*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg6.C b/gcc/testsuite/g++.old-deja/g++.brendan/err-msg6.C
deleted file mode 100644
index ce60f0d..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg6.C
+++ /dev/null
@@ -1,7 +0,0 @@
-// Build don't link:
-// GROUPS passed error-messages
-class foo {
-public:
- ~bar () {}// ERROR - destructor `bar' must match class name `foo'.*
-};
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg7.C b/gcc/testsuite/g++.old-deja/g++.brendan/err-msg7.C
deleted file mode 100644
index 5971806..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg7.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// Build don't link:
-// GROUPS passed error-messages
-class foo {
-public:
- volatile int () {}// ERROR -
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg8.C b/gcc/testsuite/g++.old-deja/g++.brendan/err-msg8.C
deleted file mode 100644
index a2ad4df..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg8.C
+++ /dev/null
@@ -1,3 +0,0 @@
-// Build don't link:
-// GROUPS passed error-messages
-operator int ;// ERROR - declaration of `operator int' as non-function.*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg9.C b/gcc/testsuite/g++.old-deja/g++.brendan/err-msg9.C
deleted file mode 100644
index 0714de6..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/err-msg9.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// Build don't link:
-// GROUPS passed error-messages
-class foo {
-public:
- int ~foo ();// ERROR - return type specification for destructor invalid.*
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/explicit1.C b/gcc/testsuite/g++.old-deja/g++.brendan/explicit1.C
deleted file mode 100644
index 148155e..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/explicit1.C
+++ /dev/null
@@ -1,4 +0,0 @@
-// $7.1.2 disallows explicit on anything but declarations of
-// constructors ... including friends.
-class foo { public: foo(); };
-class bar { public: friend explicit foo::foo(); }; // ERROR - explicit friend
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/friend1.C b/gcc/testsuite/g++.old-deja/g++.brendan/friend1.C
deleted file mode 100644
index 9aea460..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/friend1.C
+++ /dev/null
@@ -1,19 +0,0 @@
-// Build don't link:
-// GROUPS passed friends
-class A
-{
-private:
- A () {}
-
-friend struct B;
-};
-
-class B
-{
-public:
- A a;
-};
-
-B b;
-
-int main () {}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/friend2.C b/gcc/testsuite/g++.old-deja/g++.brendan/friend2.C
deleted file mode 100644
index 5b1333f..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/friend2.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// GROUPS passed friends
-class X {
- int a;
-friend void friend_set (X*, int);
-};
-
-void friend_set (X *p, int i) { p->a = i; }
-
-void f()
-{
- X obj;
- friend_set (&obj, 10);
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/friend3.C b/gcc/testsuite/g++.old-deja/g++.brendan/friend3.C
deleted file mode 100644
index 1fa48a8..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/friend3.C
+++ /dev/null
@@ -1,28 +0,0 @@
-// Build don't link:
-// GROUPS passed friends
-class B {
-
- friend class A;
-
- enum {
- bEnum = 1,
- }; // ERROR - comma
-
- int bArray[ bEnum ];
-
-public:
- void bFunction(int arg[ bEnum ]);
-};
-
-
-class A {
- int aMember;
-
-public:
- void aFunction(int a[B::bEnum])
- {
- B b;
- b.bArray[ B::bEnum ] = aMember;
- }
-};
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/friend4.C b/gcc/testsuite/g++.old-deja/g++.brendan/friend4.C
deleted file mode 100644
index f19d81a..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/friend4.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// Build don't link:
-// GROUPS passed friends
-// do_friend should complain that foo was declared as a friend of
-// A before A was defined
-struct A;
-struct B { friend A::foo (); };// ERROR - .*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/groff1.C b/gcc/testsuite/g++.old-deja/g++.brendan/groff1.C
deleted file mode 100644
index 179ef30..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/groff1.C
+++ /dev/null
@@ -1,33 +0,0 @@
-// GROUPS passed groff
-/* This should compile properly with the new overloading scheme. */
-
-extern "C" void printf (const char *, ...);
-extern "C" void exit (int);
-
-int win = 0;
-
-class symbol
-{
-public:
- symbol(const char *p, int how = 0) {}
- symbol() {}
-};
-
-class dictionary
-{
-public:
- void *lookup(symbol s, void *v=0) { win = 1; }
- void *lookup(const char *) {}
-};
-
-int main()
-{
- char buf[2048];
- dictionary exceptions;
- unsigned char *tem = new unsigned char[19 + 1];
-
- exceptions.lookup (symbol (buf), tem);
-
- printf (win ? "PASS\n" : "FAIL\n");
- exit (! win);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/init1.C b/gcc/testsuite/g++.old-deja/g++.brendan/init1.C
deleted file mode 100644
index 4396906..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/init1.C
+++ /dev/null
@@ -1,11 +0,0 @@
-// Build don't link:
-// GROUPS passed initialization
- class Thing{
- private:
- int x,y;
- public:
- Thing (int v, int q) { x = v; q = y; }
- void doit(int);
- };
-
- Thing t(18,19);
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/init10.C b/gcc/testsuite/g++.old-deja/g++.brendan/init10.C
deleted file mode 100644
index 45b2985..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/init10.C
+++ /dev/null
@@ -1,3 +0,0 @@
-// Build don't link:
-// GROUPS passed initialization
-struct { int :0; } a;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/init11.C b/gcc/testsuite/g++.old-deja/g++.brendan/init11.C
deleted file mode 100644
index 69fd77c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/init11.C
+++ /dev/null
@@ -1,9 +0,0 @@
-// Build don't link:
-// GROUPS passed initialization
-struct String {
- char * string;
- String(const char* st);
-};
-
-extern char array [];
-static String sub = array;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/init12.C b/gcc/testsuite/g++.old-deja/g++.brendan/init12.C
deleted file mode 100644
index 7d7c13a..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/init12.C
+++ /dev/null
@@ -1,9 +0,0 @@
-// Build don't link:
-// GROUPS passed array-bindings
-char * bob();
-
-int main()
-{
- char a[1][2];
- a[0] = bob();// ERROR - .*
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/init13.C b/gcc/testsuite/g++.old-deja/g++.brendan/init13.C
deleted file mode 100644
index 41f0fcf..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/init13.C
+++ /dev/null
@@ -1,7 +0,0 @@
-// Build don't link:
-// GROUPS passed initialization
-struct A {
- operator int ();
-};
-
-int i = A();
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/init2.C b/gcc/testsuite/g++.old-deja/g++.brendan/init2.C
deleted file mode 100644
index a9ec6f3..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/init2.C
+++ /dev/null
@@ -1,5 +0,0 @@
-// Build don't link:
-// GROUPS passed initialization
-// this should give an error in require_instantiated_type about not
-// being allowed to have an initializer list in an argument list.
-int f(int a = {1});// ERROR - .*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/init3.C b/gcc/testsuite/g++.old-deja/g++.brendan/init3.C
deleted file mode 100644
index b86c2c7..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/init3.C
+++ /dev/null
@@ -1,38 +0,0 @@
-// GROUPS passed initialization
-// p2766: Make sure that members are initialized in order of declaration
-// in the class, not in order of specification in the mem-initializer list.
-
-extern "C" void printf (char *, ...);
-extern "C" void exit (int);
-
-int count = 0;
-
-void die () { printf ("FAIL\n"); exit (1); }
-
-class bar1 {
-public:
- bar1 (int) { if (count != 0) die (); count = 1; }
-};
-
-class bar2
-{
-public:
- bar2 (int) { if (count != 1) die (); count = 2; }
-};
-
-class foo
-{
-public:
- bar1 a;
- bar2 b;
- foo (int, int);
-};
-
-// bar1 should get built before bar2
-foo::foo (int x, int y) : b(x), a(y) {}
-
-int main()
-{
- foo f (1, 2);
- printf ("PASS\n");
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/init4.C b/gcc/testsuite/g++.old-deja/g++.brendan/init4.C
deleted file mode 100644
index c1d3592..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/init4.C
+++ /dev/null
@@ -1,5 +0,0 @@
-// Build don't link:
-// GROUPS passed initialization
-struct CharList { int i; };
-
-const CharList& terminals = { 1 };// ERROR - .*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/init5.C b/gcc/testsuite/g++.old-deja/g++.brendan/init5.C
deleted file mode 100644
index 112dcac..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/init5.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// Build don't link:
-// GROUPS passed initialization
-int main( int argc, char**argv, char** envp ){
- char* domain = argv[1];
- domain = domain? (char*)"component" : domain;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/init6.C b/gcc/testsuite/g++.old-deja/g++.brendan/init6.C
deleted file mode 100644
index e49758a..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/init6.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// GROUPS passed initialization
-class Tag {
-public:
- Tag(int i):value(i){}
- int value;
-};
-
-extern const Tag myTag;
-extern const Tag myTag=9;
-
-// The compiler should not issue an error on this line; expand_static_init
-// should be checking that there's no initializer for this line, and thus
-// doesn't need to produce an error.
-extern const Tag myTag;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/init7.C b/gcc/testsuite/g++.old-deja/g++.brendan/init7.C
deleted file mode 100644
index 033da8f..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/init7.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// Build don't link:
-// GROUPS passed initialization
-struct myChoiceList
-{
- int bla;
- int blubb;
- int brummbrumm;
-};
-
-extern const myChoiceList foo;
-
-extern const myChoiceList foo = {1,1,1};
-
-// finish_decl should have an exclusion so an error is not produced
-// for this line.
-extern const myChoiceList foo;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/init8.C b/gcc/testsuite/g++.old-deja/g++.brendan/init8.C
deleted file mode 100644
index 4818a41..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/init8.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// Build don't link:
-// GROUPS passed initialization
-class A
-{
-public:
- A(const A & a) : i_member(a.i_member)
- {
- }
- A(const int & i) : i_member(i)
- {
- }
- union
- {
- int i_member;
- };
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/init9.C b/gcc/testsuite/g++.old-deja/g++.brendan/init9.C
deleted file mode 100644
index bad6416..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/init9.C
+++ /dev/null
@@ -1,11 +0,0 @@
-// Build don't link:
-// GROUPS passed initialization
-int FALSE = 0;
-class X {
-public:
- static int FALSE;
-};
-
-// The compiler should NOT complain about redeclaration of the global
-// `FALSE' with this declaration...grokvardecl shouldn't be doing that.
-int X::FALSE = 0;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/label1.C b/gcc/testsuite/g++.old-deja/g++.brendan/label1.C
deleted file mode 100644
index ff0b87c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/label1.C
+++ /dev/null
@@ -1,4 +0,0 @@
-// Build don't link:
-// GROUPS passed labels
-// it should only give 1 error, about using an undefined label
-int main(void) { goto dummy; }// ERROR - .*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/label2.C b/gcc/testsuite/g++.old-deja/g++.brendan/label2.C
deleted file mode 100644
index bce2112..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/label2.C
+++ /dev/null
@@ -1,11 +0,0 @@
-// Build don't link:
-// GROUPS passed labels
-class X {
-public:
- X();
-};
-void foo ()
-{
-X: ::abort();
- goto X;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/line1.C b/gcc/testsuite/g++.old-deja/g++.brendan/line1.C
deleted file mode 100644
index d76832e..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/line1.C
+++ /dev/null
@@ -1,4 +0,0 @@
-// Build don't link:
-// GROUPS passed error-messages
-typedef struct s S;// ERROR - previous.*
-struct S { int member:1; }; // the lineno for this should be 2, not 0// ERROR - conflicting types.*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc1.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc1.C
deleted file mode 100644
index 666ec25..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc1.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// Build don't link:
-// GROUPS passed miscellaneous-bugs
-int main( int argc, char**argv, char** envp ){
- char* domain = argv[1];
- domain = domain? (char*)"component" : domain;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc10.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc10.C
deleted file mode 100644
index 4d96926..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc10.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// Build don't link:
-// GROUPS passed miscellaneous
-// The compiler shouldn't give a `invalid operands to binary +' for this
-// case.
-enum flag { OFF, ON };
-enum BOOL { FALSE = (enum flag) 0, TRUE };
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc11.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc11.C
deleted file mode 100644
index 043f6a5..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc11.C
+++ /dev/null
@@ -1,20 +0,0 @@
-// Build don't link:
-// GROUPS passed miscellaneous
-// This should not complain about A::f being abstract.
-struct A
-{
- virtual int f() = 0;
-};
-
-struct B : virtual A
-{
- virtual int f() { return 1; }
- virtual int g() = 0;
-};
-
-struct C: B
-{
- int g() { return 2; }
-};
-
-C c;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc12.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc12.C
deleted file mode 100644
index 73db9bf..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc12.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// GROUPS passed miscellaneous
-extern "C" void exit (int);
-extern "C" int printf (char *, ...);
-
-/* Make sure cp-lex.c handles these properly--if this links, that means
- it emitted the strings instead of __FUNCTION__.0, etc. */
-
-int
-main()
-{
- char *a = __FUNCTION__;
- char *b = __PRETTY_FUNCTION__;
-
- printf ("PASS\n");
- exit (0);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc13.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc13.C
deleted file mode 100644
index 57292a2..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc13.C
+++ /dev/null
@@ -1,9 +0,0 @@
-// Build don't link:
-// GROUPS passed miscellaneous-bugs
-// This should only give warnings from duplicate_decls; it should not get
-// errors from push_overloaded_decl as well.
-
-extern "C"
-{
- long unsigned int strlen(char*);// ERROR - warning// ERROR - warning.*
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc14.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc14.C
deleted file mode 100644
index 024566f..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc14.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-// GROUPS passed miscellaneous-bugs
-class X {
-public:
- enum e {
- New,// ERROR - conflicts with other.*
- }; // ERROR - comma
-
- static int New(int);// ERROR - declaration.*
-};
-
-int main() {}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc15.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc15.C
deleted file mode 100644
index e4dd53e..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc15.C
+++ /dev/null
@@ -1,13 +0,0 @@
-// Build don't link:
-// GROUPS passed miscellaneous-bugs
-// we shouldn't get any warnings or errors for this code
-struct A {
- int aa;
-};
-struct B : public A {
-};
-struct C : public A {
-};
-struct D : public C, public B {
- void fun() { C::aa = 10; }
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc16.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc16.C
deleted file mode 100644
index 15e3946..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc16.C
+++ /dev/null
@@ -1,19 +0,0 @@
-// Build don't link:
-// GROUPS passed miscellaneous-bugs
-// Using a typedef causes a compiler error
-typedef unsigned int Uint32;
-
-// Using a define so that there isn't a typedef works OK.
-//#define Uint32 unsigned int
-
-Uint32 func0(Uint32, Uint32)
-{
- return 0;
-}
-
-Uint32 func1(Uint32, Uint32)
-{
- return 1;
-}
-
-Uint32 (*mf[])(Uint32, Uint32) = {func0, func1};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc17.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc17.C
deleted file mode 100644
index 987618f..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc17.C
+++ /dev/null
@@ -1,36 +0,0 @@
-// Build don't link:
-// GROUPS passed miscellaneous-bugs
-typedef int va_list;
-class ostream;
-class String {
-public:
-operator const char *() const;
-};
-class FwtErrorManager {
-public:
- FwtErrorManager(ostream& err, const char *program);
-public:
- void form(const char *format, ...);
-protected:
- const String _program;
-private:
- FwtErrorManager(const FwtErrorManager&);
- void operator=(const FwtErrorManager&);
-};
-class FwtProgram: public FwtErrorManager {
-public:
- FwtProgram();
-};
-class FwtArgOptions { };
-class FwtStdProgram: public FwtProgram, public FwtArgOptions {
-public:
- FwtStdProgram();
- void usage_if_not_complete();
-};
-void
-FwtStdProgram::usage_if_not_complete()
-{
- FwtStdProgram& thisp = *this;
- thisp.form("%s: error, there were unrecognized options",
- (char *) FwtErrorManager::_program);// ERROR - .*
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc2.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc2.C
deleted file mode 100644
index d9aa99b..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc2.C
+++ /dev/null
@@ -1,11 +0,0 @@
-// Build don't link:
-// GROUPS passed miscellaneous-bugs
-// Should be fixed by:
-// Sun Jun 13 12:55:22 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
-//
-// * cp-decl.c (grokvardecl): Don't complain about duplicate
-// definitions of `extern "C"' declarations (parallelize it with how
-// regular `extern' decls are handled).
-
-extern "C" double _MaXdOuB, _MiNdOuB;
-extern "C" double _MaXdOuB, _MiNdOuB; // no error should be emitted for this
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc3.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc3.C
deleted file mode 100644
index d632cb7..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc3.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-// GROUPS passed miscellaneous-bugs
-// The compiler should not error about taking the addr of main in this example.
-class fred {
-private:
- void main () {
- }
-public:
- fred ( ) {
- &fred::main;
- }
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc4.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc4.C
deleted file mode 100644
index 93aea92..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc4.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// GROUPS passed miscellaneous
-// This should not emit an error about A::~A() being redefined; we
-// should check that it is a pure virtual.
-class A {
-public:
- virtual ~A() = 0;
-};
-
-A::~A() {}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc5.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc5.C
deleted file mode 100644
index 05eeed6..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc5.C
+++ /dev/null
@@ -1,7 +0,0 @@
-// Build don't link:
-// GROUPS passed miscellaneous
-class A {
- static A aa[2];
-};
-
-A A::aa[2]; // should be completely legal
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc6.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc6.C
deleted file mode 100644
index b05c1f1..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc6.C
+++ /dev/null
@@ -1,9 +0,0 @@
-// Build don't link:
-// GROUPS passed miscellaneous
-// test that use of `inline' is forbidden when it should be
-inline int i;// ERROR - .*
-struct c { inline int i; };// ERROR - .*
-int foo (inline int i);// ERROR - .*
-inline class c; // ERROR - inline
-inline typedef int t; // ERROR - inline
-class d { inline friend class c; }; // ERROR - inline
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc7.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc7.C
deleted file mode 100644
index af07d6f..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc7.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// GROUPS passed miscellaneous
-extern "C" void printf (char *, ...);
-
-int main()
-{
- int i = 0;
- // Make sure build_unary_op correctly computes this.
- int *pi = &(++i);
- *pi = 4;
-
- if (i != 4)
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc8.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc8.C
deleted file mode 100644
index b2aa92f..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc8.C
+++ /dev/null
@@ -1,18 +0,0 @@
-// Build don't link:
-// GROUPS passed miscellaneous
-// used to say invalid lvalue in `&\'
-class foo {
- int a;
- public:
- foo(int a);
-};
-
-foo::foo(int a)
-{
- foo::a=a;
-}
-
-int main()
-{
-foo obj(4);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/misc9.C b/gcc/testsuite/g++.old-deja/g++.brendan/misc9.C
deleted file mode 100644
index 88071c6..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/misc9.C
+++ /dev/null
@@ -1,28 +0,0 @@
-// Build don't link:
-// GROUPS passed miscellaneous
-//The program listed below produces the following error during compilation:
-// % g++ bug17.cc
-// bug17.cc: In method `class Y& Y::operator = (const class Y&)':
-// bug17.cc:18: invalid use of non-lvalue array
-
-class X {
-public:
- X& operator=(const X&) { return *this; }
-};
-
-struct S {
- char c[10];
- X x;
-};
-
-class Y {
- S s;
-public:
- const S& f() const { return s; }
-
- Y& operator=(const Y& _Y) {
- s = _Y.s; // this line compiles
- s = _Y.f(); // this line does not compile
- return *this;
- }
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/mutable1.C b/gcc/testsuite/g++.old-deja/g++.brendan/mutable1.C
deleted file mode 100644
index 79157b7..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/mutable1.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// Build don't link:
-// GROUPS passed mutable
-class foo;
-class bar {
- mutable foo const *foobar;
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest1.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest1.C
deleted file mode 100644
index 32aab3e..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest1.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-int x;
-class enclose {
-public:
- int x;
-
- class inner {
- public:
- void f (int i) {
- x = i;// ERROR - .*
- }
- };
-};
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest10.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest10.C
deleted file mode 100644
index d22e307..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest10.C
+++ /dev/null
@@ -1,30 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-class A
- {
- public:
- class B
- {
- public:
- int f ();
- void g (int);
- private:
- int b;
- };
- };
-
-int A::B::f ()
- {
- int val=b;
- return val;
- }
-
-void A::B::g (int val)
- {
- b = val;
- }
-
-
-int main ()
- {
- }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest11.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest11.C
deleted file mode 100644
index 4a57b38..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest11.C
+++ /dev/null
@@ -1,19 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-class A {
- int x;
-
- struct B {
- int x;
- };
- struct C {
- int bug (A::B &y);
- };
-};
-
-int
-A::C::bug (A::B &y)
-{
- return y.x;
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest12.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest12.C
deleted file mode 100644
index 19286db..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest12.C
+++ /dev/null
@@ -1,21 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-struct enclose {
- class nested;
- nested *nptr;
- class nested {
- int x;
- };
- void f();
-};
-
-void enclose::f()
-{
- nptr = new enclose::nested;
-}
-
-void g()
-{
- enclose obj;
- obj.nptr = new enclose::nested;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest13.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest13.C
deleted file mode 100644
index 354e7bc..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest13.C
+++ /dev/null
@@ -1,20 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-// The bug here is that wer'e getting a message about inner not
-// being a basetype itself. I think it's because it's being
-// compared as the "inner" we knew about when it was forward-declared,
-// versus the "inner" we know about when it *has* been defined.
-
-class temp
-{
-public:
- struct inner;
- inner *trump()
- {
- return (tt);
- }
- struct inner
- {
- int ll;
- }*tt;
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest15.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest15.C
deleted file mode 100644
index 4a696af..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest15.C
+++ /dev/null
@@ -1,37 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-class BDDHeap {
-public:
- BDDHeap();
- BDDHeap(const BDDHeap&);
-
- class Page {
- public:
- int i;
- };
- struct Pointer {
- Page *page;
- unsigned index;
-
- Pointer();
- Pointer(const BDDHeap& heap);
- };
-
- struct Half {
- struct {
- Page *top;
- Page **tail;
- } inuse;
-
- Half();
- };
-
- Half half[2];
- unsigned halfspace;
-};
-
-inline
-BDDHeap::Pointer::Pointer(const BDDHeap& heap):
-page(heap.half[heap.halfspace].inuse.top),
-index(0)
-{ }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest16.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest16.C
deleted file mode 100644
index 920ea0b5..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest16.C
+++ /dev/null
@@ -1,41 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-class BDDHeap {
-public:
- BDDHeap();
- BDDHeap(const BDDHeap&);
-
- class Page {
- public:
- int i;
- };
- struct Pointer {
- Page *page;
- unsigned index;
-
- Pointer();
- Pointer(const BDDHeap& heap);
- };
-
- struct Half {
- struct {
- Page *top;
- Page **tail;
- } inuse;
-
- Half();
- };
-
- Half half[2];
- unsigned halfspace;
-};
-
-inline
-BDDHeap::Pointer::Pointer(const BDDHeap& heap):
-page(0),
-index(0)
-{
- Page *x = heap.half[heap.halfspace].inuse.top;
- page = x;
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest17.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest17.C
deleted file mode 100644
index f61c49e..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest17.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-class T {
-public:
- typedef int I;
- class Y {int y;};
- typedef Y Z;
-};
-
-T::I i;
-T::Y y;
-T::Z z;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest18.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest18.C
deleted file mode 100644
index e41def4..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest18.C
+++ /dev/null
@@ -1,31 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-// This is the first line of file ||t2.C||.
-
-// This code demonstrates what appears to be a bug with nested types.
-// In C++, nested typedefs are not supposed to be visible outside
-// their class scopes but they apparently are in gcc 2.4.5. This code
-// compiles fine in AT&T cfront 3.0.1, but will not compile with gcc.
-
-// If this class does not precede String, then the code will compile.
-
-class Another {
-public:
- typedef int Length;
-};
-
-// If String does not define typedef int Length, then the code will
-// compile.
-
-class String {
-public:
- typedef int Length; // remove this and it will compile fine
-
- int foo(Length length) const;
-};
-
-int String::foo(Length length) const {
- return length;
-}
-
-// File ||t2.C|| ends here.
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest19.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest19.C
deleted file mode 100644
index efa7ac5..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest19.C
+++ /dev/null
@@ -1,40 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-// This is the first line of file ||t3.C||.
-
-// This code demonstrates a variation of the same problem with nested
-// types. In C++, nested typedefs are not supposed to be visible
-// outside their class scopes but they apparently are in gcc 2.4.5.
-// This code compiles fine in AT&T cfront 3.0.1, but gcc rejects it
-// with the messages given below.
-
-// If this class does not precede Expr, then the code will compile.
-
-class Another {
-public:
- typedef int Boolean;
- enum { FALSE, TRUE };
-};
-
-// If Expr does not define typedef int Boolean, then the code will
-// compile.
-
-class Expr {
-public:
- typedef int Boolean;
- enum { FALSE, TRUE };
- void foo();
- void call_something_with(Boolean);
-};
-
-// t3.C: In method `void Expr::foo ()':
-// t3.C:36: uninitialized const `Boolean'
-// t3.C:36: parse error before `='
-// t3.C:37: `argument' undeclared (first use this function)
-// t3.C:37: (Each undeclared identifier is reported only once
-// t3.C:37: for each function it appears in.)
-
-void Expr::foo() {
- const Boolean argument = TRUE;
- call_something_with(argument);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest2.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest2.C
deleted file mode 100644
index 4b55245..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest2.C
+++ /dev/null
@@ -1,18 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-class A {
-protected:
- class B {
- public:
- ~B();
- private:
- float _datum;
- };
-private:
- B *_b;
-};
-
-A::B::~B()
-{
- _datum = 8.0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest20.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest20.C
deleted file mode 100644
index 297b08a..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest20.C
+++ /dev/null
@@ -1,30 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-// This is the first line of file ||t5.C||.
-
-// This code initializing an unnamed union inside a class appears to
-// be legal C++ input and compiles fine with AT&T cfront 3.0.1, but
-// gcc 2.4.5 complains about multiple initializations of the same
-// member.
-
-class Expr {
-public:
- enum Type { undefined, slong, ulong, ldouble };
- Expr();
- Expr(Type type, const Expr* initializer);
-private:
- Type type_;
- union {
- long slong_;
- unsigned long ulong_;
- long double ldouble_;
- };
-};
-
-// Construct an undefined expression.
-
-Expr::Expr()
- :
- type_(undefined),
- slong_(-1)
-{}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest21.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest21.C
deleted file mode 100644
index f32166d..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest21.C
+++ /dev/null
@@ -1,95 +0,0 @@
-// GROUPS passed nested-classes
-#include <iostream.h>
-#include <stdio.h>
-
-static char output[1024];
-
-class BDDRetrace {
-public:
- class Dump {
- public:
- virtual Dump& operator<<(char c) = 0;
- virtual Dump& operator<<(int i) = 0;
- virtual Dump& operator<<(double r) = 0;
- };
-
- class Dump1: public Dump {
- public:
- Dump& operator<<(char c);
- Dump& operator<<(int i);
- Dump& operator<<(double r);
- };
-};
-
-class Dump2: public BDDRetrace::Dump {
-public:
- BDDRetrace::Dump& operator<<(char c);
- BDDRetrace::Dump& operator<<(int i);
- BDDRetrace::Dump& operator<<(double r);
-};
-
-BDDRetrace::Dump&
-BDDRetrace::Dump1::operator<<(char c)
-{ char tempout[1024];
- sprintf (tempout, "%s%s%c", output, "1-", c);
- strcpy (output, tempout);
- return *this;
-}
-
-BDDRetrace::Dump&
-BDDRetrace::Dump1::operator<<(int i)
-{ char tempout[1024];
- sprintf (tempout, "%s%s%d", output, "1-", i);
- strcpy (output, tempout);
- return *this; }
-
-BDDRetrace::Dump&
-BDDRetrace::Dump1::operator<<(double r)
-{ char tempout[1024];
- sprintf (tempout, "%s%s%1.0f", output, "1-", r);
- strcpy (output, tempout);
- return *this; }
-
-BDDRetrace::Dump&
-Dump2::operator<<(char c)
-{ char tempout[1024];
- sprintf (tempout, "%s%s%c", output, "2-", c);
- strcpy (output, tempout);
- return *this; }
-
-BDDRetrace::Dump&
-Dump2::operator<<(int i)
-{ char tempout[1024];
- sprintf (tempout, "%s%s%d", output, "2-", i);
- strcpy (output, tempout);
- return *this; }
-
-BDDRetrace::Dump&
-Dump2::operator<<(double r)
-{ char tempout[1024];
- sprintf (tempout, "%s%s%1.0f", output, "2-", r);
- strcpy (output, tempout);
- return *this; }
-
-int main()
-{
- BDDRetrace::Dump1 d1;
- Dump2 d2;
-
- sprintf (output, " ");
-
- d1 << 'a';
- d1 << 1;
- d1 << 1.0;
-
- d2 << 'a';
- d2 << 1;
- d2 << 1.0;
-
- if (strcmp (output, " 1-a1-11-12-a2-12-1") == 0)
- printf ("PASS\n");
- else
- printf ("FAIL\n");
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest22.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest22.C
deleted file mode 100644
index cd26c34..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest22.C
+++ /dev/null
@@ -1,7 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-class foo {
-public:
- typedef int bar;
- foo::bar fb; // this line causes a syntax error!
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest23.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest23.C
deleted file mode 100644
index e18398b..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest23.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-class CS {
-public:
- class PS {
- };
-};
-
-class NCS: public CS {
-public:
- class S: public PS {
- };
-};
-
-int i;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest24.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest24.C
deleted file mode 100644
index 4fcc02c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest24.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-struct A {
- A (){}
-};
-
-void foo ()
-{
- struct B {};
-
- struct S : B {
- A a;
- };
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest3.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest3.C
deleted file mode 100644
index bedd519..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest3.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-// GROUPS passed nested-classes
-class X {
-public:
- struct M2 { int m; };
- M2 g(int);
-};
-
-
-X::M2 X::g(int i) { X::M2 m2; return m2; }
-
-int main() { }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/nest4.C b/gcc/testsuite/g++.old-deja/g++.brendan/nest4.C
deleted file mode 100644
index 34631f4..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/nest4.C
+++ /dev/null
@@ -1,9 +0,0 @@
-// Build don't link:
-// Special g++ Options: -pedantic-errors
-// GROUPS passed nested-classes
-class vec {
- class blah { };
-
- ::vec::blah satan( 0);// ERROR - .*
- blah herman( 0);// ERROR - .*
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/new-array.C b/gcc/testsuite/g++.old-deja/g++.brendan/new-array.C
deleted file mode 100644
index 3080a58..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/new-array.C
+++ /dev/null
@@ -1,18 +0,0 @@
-// Build don't link:
-// GROUPS passed operator-new
-typedef struct {
- int a;
-} AStruct;
-
-void MakeBug() {
- AStruct *job;
-
- // This used to crash, it should now give error(s).
- job = new AStruct[];// ERROR - .*
-
- job = new AStruct;
-}
-
-int main () {
- MakeBug();
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/new1.C b/gcc/testsuite/g++.old-deja/g++.brendan/new1.C
deleted file mode 100644
index 09326d2..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/new1.C
+++ /dev/null
@@ -1,5 +0,0 @@
-// Build don't link:
-// GROUPS passed operator-new
-typedef __SIZE_TYPE__ size_t;
-struct x { int a; void * operator new (size_t, void *); };
-struct x * f(void *p) { return new (p) x; }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/new2.C b/gcc/testsuite/g++.old-deja/g++.brendan/new2.C
deleted file mode 100644
index 64b3d51..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/new2.C
+++ /dev/null
@@ -1,67 +0,0 @@
-// GROUPS passed operator-new
-// Check that if there is a user defined class-specific operator
-// new for a given class, that operator is invoked when a new
-// object of the class is requested, regardless of whether or not
-// there is also a constructor for the given class, and regardless
-// of whether or not the constructor for the given class is defined
-// before or after the new operator is even declared.
-
-extern "C" void printf (char *, ...);
-
-typedef __SIZE_TYPE__ size_t;
-
-struct base {
- int i;
-
- base ()
- {
- i = 7;
- }
-
- void * operator new (size_t size);
- void operator delete (void*);
-};
-
-class derived : public base {
- int j;
-};
-
-int new_call_count = 0;
-int expected_size = 0;
-int errors = 0;
-
-int main ()
-{
- base* base_ptr;
- derived* derived_ptr;
-
- expected_size = 4;
- base_ptr = new base;
- expected_size = 8;
- derived_ptr = new derived ();
-
- if ((new_call_count != 2) || (errors != 0))
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-
- return 0;
-}
-
-char allocation_space[1000];
-char* allocation_ptr = allocation_space;
-
-void base::operator delete (void* p)
-{
-}
-
-void *base::operator new (size_t size)
-{
- char* return_value = allocation_ptr;
-
- new_call_count++;
- if (size != expected_size)
- errors++;
- allocation_ptr = allocation_ptr + size;
- return (void*) return_value;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/new3.C b/gcc/testsuite/g++.old-deja/g++.brendan/new3.C
deleted file mode 100644
index 5f5c988..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/new3.C
+++ /dev/null
@@ -1,36 +0,0 @@
-// GROUPS passed operator-new
-#include <stdio.h>
-#include <stdlib.h>
-#include <new>
-
-int pass = 0;
-
-void *operator new(size_t sz) throw (std::bad_alloc) {
-
- void *p;
-
- pass = 1;
- p = malloc(sz);
- return p;
-}
-
-class A {
-public:
- A() {}
- ~A() {}
-
- int a;
- int b;
-};
-
-
-int main()
-{
- A *bb = new A[10];
- delete [] bb;
-
- if (pass)
- printf ("PASS\n");
- else
- printf ("FAIL\n");
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/ns1.C b/gcc/testsuite/g++.old-deja/g++.brendan/ns1.C
deleted file mode 100644
index d20a9d9..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/ns1.C
+++ /dev/null
@@ -1,18 +0,0 @@
-// Build don't link:
-// GROUPS passed old-abort
-struct B
-{
- void f(char);
- void g(char);
-};
-
-class C
-{
- int g();
-};// ERROR - warning
-
-class D2 : public B
-{
- using B::f; // ok: B is a base of D
- using C::g; // error: C isn't a base of D2
-}; // ERROR - type C is not a base type for type D2
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/operators1.C b/gcc/testsuite/g++.old-deja/g++.brendan/operators1.C
deleted file mode 100644
index 89453f9..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/operators1.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// Build don't link:
-// GROUPS passed operators
-struct A {
- int x;
-};
-
-int operator()(A x,float y) { // MUST be a member function// ERROR - .*
- return 1;
-}
-
-int main() {
- A x;
- x(1.0); // ERROR - no match for call
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/operators2.C b/gcc/testsuite/g++.old-deja/g++.brendan/operators2.C
deleted file mode 100644
index ece06ef..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/operators2.C
+++ /dev/null
@@ -1,4 +0,0 @@
-// Build don't link:
-// GROUPS passed operators
-class X { };
-void operator[](X& a, X& b) {} // MUST be a member function// ERROR - .*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/operators3.C b/gcc/testsuite/g++.old-deja/g++.brendan/operators3.C
deleted file mode 100644
index e068de3..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/operators3.C
+++ /dev/null
@@ -1,4 +0,0 @@
-// Build don't link:
-// GROUPS passed operators
-class X { };
-void operator->(X& a, X& b) {} // MUST be a member function// ERROR - .*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/operators4.C b/gcc/testsuite/g++.old-deja/g++.brendan/operators4.C
deleted file mode 100644
index b56d26c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/operators4.C
+++ /dev/null
@@ -1,121 +0,0 @@
-// GROUPS passed operators
-// Check that the & operator, when applied to a global function
-// or member function returns a proper value as long as the context
-// in which the result of & is used requires a pointer to a specific
-// unambigous (function-pointer) type.
-//
-// This test fails (in test5()) when compiled with g++ 1.34.1.
-
-extern "C" void printf (char *, ...);
-
-int function (char c);
-int function (float f);
-
-class base {
- int filler;
-public:
- int method (char);
- int method (float);
-};
-
-void* vp;
-
-typedef int (*ptr_to_func_of_char)(char);
-typedef int (*ptr_to_func_of_float)(float);
-typedef int (base::*ptr_to_method_of_char)(char);
-typedef int (base::*ptr_to_method_of_float)(float);
-
-int test2 (void*);
-int test3 (void*);
-int test4 (void*);
-int test5 (void*);
-
-base* base_ptr;
-
-int fail ()
-{
- printf ("FAIL\n");
- return 1;
-}
-
-int main ()
-{
- base_ptr = new base;
-
- ptr_to_func_of_char p0 = &function;
- vp = (void*) p0;
- if (test2 (vp))
- return fail ();
- ptr_to_func_of_float p1 = &function;
- vp = (void*) p1;
- if (test3 (vp))
- return fail ();
- ptr_to_method_of_char p2 = &base::method;
- vp = (void*) p2; // ERROR -
- if (test4 (vp))
- return fail ();
- ptr_to_method_of_float p3 = &base::method;
- vp = (void*) p3; // ERROR -
- if (test5 (vp))
- return fail ();
-
- printf ("PASS\n");
- return 0;
-}
-
-int test2 (void* vp)
-{
- char ch = 'x';
-
- return (((ptr_to_func_of_char)vp)(ch) != 9901);
-}
-
-int test3 (void* vp)
-{
- float flt = 9.9;
-
- return (((ptr_to_func_of_float)vp)(flt) != 9902);
-}
-
-int test4 (void* vp)
-{
- char ch = 'x';
- ptr_to_method_of_char p = (ptr_to_method_of_char) vp; // ERROR - bad type conversion
-
- return ((base_ptr->*p)(ch) != 9904);
-}
-
-int test5 (void* vp)
-{
- float flt = 9.9;
- ptr_to_method_of_float p = (ptr_to_method_of_float) vp; // ERROR - bad type conversion
-
- if ((base_ptr->*p)(flt) != 9905) {
- return 1;
- } else
- return 0;
-}
-
-int function (char c)
-{
- c = c;
- return 9901;
-}
-
-int function (float f)
-{
- f = f;
- return 9902;
-}
-
-int base::method (char c)
-{
- c = c;
- return 9904;
-}
-
-int base::method (float f)
-{
- f = f;
- return 9905;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/operators5.C b/gcc/testsuite/g++.old-deja/g++.brendan/operators5.C
deleted file mode 100644
index 84c09a2..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/operators5.C
+++ /dev/null
@@ -1,52 +0,0 @@
-// GROUPS passed operators
-// Check that operators may be (directly) recursive.
-
-extern "C" void printf (char *, ...);
-
-struct base {
- int i;
-};
-
-base base_variable;
-
-base operator+ (const base& left, const base& right)
-{
- base ret_val;
-
- ret_val.i = left.i + right.i;
- return ret_val;
-}
-
-base operator- (const base& left, int right)
-{
- base ret_val;
-
- ret_val.i = left.i - right;
- return ret_val;
-}
-
-// Define the unary ! operator for class base to be the fibonachi
-// operator.
-
-base operator! (const base& right)
-{
- if (right.i < 2)
- return right;
- else
- return ((!(right-1)) + (!(right-2)));
-}
-
-int main ()
-{
- base k;
-
- k.i = 15;
- k = !k; // fib it!
-
- if (k.i != 610)
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/operators6.C b/gcc/testsuite/g++.old-deja/g++.brendan/operators6.C
deleted file mode 100644
index c0c2318..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/operators6.C
+++ /dev/null
@@ -1,11 +0,0 @@
-// Build don't link:
-// GROUPS passed operators
-class a {
-public:
- a* operator->() { return this; }
- void p();
-};
-
-void a::p() {
- operator->();
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/operators7.C b/gcc/testsuite/g++.old-deja/g++.brendan/operators7.C
deleted file mode 100644
index 7a95221..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/operators7.C
+++ /dev/null
@@ -1,13 +0,0 @@
-// Build don't link:
-// GROUPS passed operators
-class A {
- char *p;
-public:
- operator const char *() const { return p; }
-};
-
-int foo(const A &a)
-{
- return (a != 0);
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/operators8.C b/gcc/testsuite/g++.old-deja/g++.brendan/operators8.C
deleted file mode 100644
index 390f749..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/operators8.C
+++ /dev/null
@@ -1,11 +0,0 @@
-// Build don't link:
-// GROUPS passed operators
-struct A {
- char *p;
- operator char *();
-};
-
-char foo(A a)
-{
- return a[0];
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/overload1.C b/gcc/testsuite/g++.old-deja/g++.brendan/overload1.C
deleted file mode 100644
index e5040fd..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/overload1.C
+++ /dev/null
@@ -1,21 +0,0 @@
-// Build don't link:
-// GROUPS passed overloading
-class Foo
-{
-public:
- int f (void);
-};
-
-class Bar : public Foo
-{
-public:
- int f (int); // ERROR - candidates are
-};
-
-int main ()
-{
- Bar b;
-
- b.f ();// ERROR -
- b.f (10);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/overload10.C b/gcc/testsuite/g++.old-deja/g++.brendan/overload10.C
deleted file mode 100644
index e28d6ea..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/overload10.C
+++ /dev/null
@@ -1,25 +0,0 @@
-// Build don't link:
-// GROUPS passed overloading
-class Bed {
- public:
- static void bed_func(
- int (*f)(int &, int, int));
-};
-class g_func {
-public:
- static int save_status;
-
- // in compute_harshness, we should be using comptypes, not ==, to
- // check if this is equivalent to the previous decl; the only
- // difference is the default arg
- static int rpt_func(int &status, int expand,
- int restore_cursor=1 );
-};
-
-int main (int argc,
- char **argv,
- char **envp)
-{
- Bed::bed_func(g_func::rpt_func);
- return(1);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/overload11.C b/gcc/testsuite/g++.old-deja/g++.brendan/overload11.C
deleted file mode 100644
index cbced94..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/overload11.C
+++ /dev/null
@@ -1,11 +0,0 @@
-// Build don't link:
-// GROUPS passed overloading
-class foo_int
-{
-public:
- int & i;
-
- foo_int (int &j) : i(j) {};
- void inc () { i++; }
-
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/overload2.C b/gcc/testsuite/g++.old-deja/g++.brendan/overload2.C
deleted file mode 100644
index 75068da..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/overload2.C
+++ /dev/null
@@ -1,43 +0,0 @@
-// GROUPS passed overloading
-// Check that calls to the correct overloaded virtual
-// functions are generated even where the type of the formal
-// arguments for the overloadings are similar or related.
-
-extern "C" void printf (char *, ...);
-
-int proper_method_called = 0;
-
-struct base {
- int member;
- virtual void method (char)
- {
- }
- virtual void method (char *)
- {
- }
-};
-
-struct derived : public base {
- int member;
- virtual void method (char)
- {
- }
- virtual void method (char *)
- {
- proper_method_called++;
- }
-};
-
-char *message;
-
-int main ()
-{
- derived derived_object;
-
- derived_object.method (message);
-
- if (proper_method_called != 1)
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/overload3.C b/gcc/testsuite/g++.old-deja/g++.brendan/overload3.C
deleted file mode 100644
index baa90fb..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/overload3.C
+++ /dev/null
@@ -1,27 +0,0 @@
-// Build don't link:
-// GROUPS passed overloading
-typedef int rutBoolean;
-
-class rutBigIntRep
-{
-public:
- friend rutBoolean operator>(const rutBigIntRep& a, const rutBigIntRep& b);
- operator rutBoolean() const;
-protected:
- enum Kluge {kluge};
- rutBigIntRep(Kluge) {}
- rutBigIntRep();
- rutBigIntRep(const rutBigIntRep& value);
- rutBigIntRep& operator=(const rutBigIntRep& value);
-};
-
-rutBoolean operator>(const rutBigIntRep& a, const rutBigIntRep& b) {
- // This should not result in a warning. It used to warn about the
- // conversion from int to enum while exploring the possibility of
- // converting `a' via `operator rutBoolean', then using the
- // rutBigIntRep(Kluge) constructor. It later realizes it shouldn't
- // do this, but the call to build_type_conversion was ending up with
- // a warning in convert.
- rutBigIntRep diff(a);
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/overload4.C b/gcc/testsuite/g++.old-deja/g++.brendan/overload4.C
deleted file mode 100644
index 21c3dc8..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/overload4.C
+++ /dev/null
@@ -1,23 +0,0 @@
-// Build don't link:
-// GROUPS passed overloading
- typedef void * (*NewObject) (void);
-
- class B
- {
- public:
- static void WantsNew (NewObject creator); // ERROR - candidates are
- };
-
- class A
- {
- public:
- static A * NewOne (void);
-
- static void InitClass (void)
- {
- B::WantsNew ( (NewObject) A::NewOne );
- // This used to die in convert_harshness_{ansi,old} cuz it
- // didn't know what to do about a void type.
- B::WantsNew ( A::NewOne );// ERROR -
- }
- };
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/overload5.C b/gcc/testsuite/g++.old-deja/g++.brendan/overload5.C
deleted file mode 100644
index d71f0c0..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/overload5.C
+++ /dev/null
@@ -1,23 +0,0 @@
-// Build don't link:
-// GROUPS passed overloading
-class Foo
-{
-public:
- int operator << (const signed char&);
- int operator << (const unsigned char&);
- int operator << (const short&);
- int operator << (const unsigned short&);
- int operator << (const long&);
- int operator << (const unsigned long&);
-};
-
-int main ()
-{
- Foo fd;
-
- // We fixed convert_harshness_ansi so it considers the call to
- // <<(const signed char&) to be a trivial conversion. It used
- // to always make it a standard conversion, which made it conflict
- // with <<(const unsigned char &), which is really a std conv.
- fd << (signed char) 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/overload6.C b/gcc/testsuite/g++.old-deja/g++.brendan/overload6.C
deleted file mode 100644
index 84903c1..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/overload6.C
+++ /dev/null
@@ -1,24 +0,0 @@
-// Build don't link:
-// GROUPS passed overloading
-struct temp_string {
- temp_string (const unsigned char);
-};
-
-class String {
- public:
- String& operator = (temp_string);
- String& operator = (const String&);
-};
-class S {
- public:
- operator temp_string & () const;
-};
-
-S lbuf;
-
-static void e_r ()
-{
- String a;
- a = lbuf;
- return;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/overload7.C b/gcc/testsuite/g++.old-deja/g++.brendan/overload7.C
deleted file mode 100644
index ec2685c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/overload7.C
+++ /dev/null
@@ -1,41 +0,0 @@
-// GROUPS passed overloading
-extern "C" void printf (char *, ...);
-
-struct NoName {
-
- int first;
- int second;
-};
-
-class Casted {
-
- public:
-
- NoName x;
- double y;
-
- Casted ( int _x , double _y ): y(_y)
- {
- x.first = _x;
- x.second = _x*2;
- }
-
- operator NoName() const { return x; }
- operator double() const { return y; }
-};
-
-int main()
-{
- Casted c(10,12.34);
-
- NoName x;
- double y;
-
- x = c;
- y = c;
-
- if (x.first == 10 && x.second == 20 && y == 12.34)
- printf ("PASS\n");
- else
- printf ("FAIL\n");
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/overload8.C b/gcc/testsuite/g++.old-deja/g++.brendan/overload8.C
deleted file mode 100644
index 71d1689..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/overload8.C
+++ /dev/null
@@ -1,9 +0,0 @@
-// Build don't link:
-// GROUPS passed overloading
-typedef struct{double re,im;} complex;
-class Complex{public:double re,im;
- inline void operator=(Complex&X){re=X.re; im=X.im;};};
-void zxcvbnm(int n,...){n=1;}
-int main(){complex c; Complex C;
-zxcvbnm(1,c);
-zxcvbnm(1,C);}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/overload9.C b/gcc/testsuite/g++.old-deja/g++.brendan/overload9.C
deleted file mode 100644
index 93a0cbf..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/overload9.C
+++ /dev/null
@@ -1,20 +0,0 @@
-// Build don't link:
-// GROUPS passed overloading
-class CLogger
-{
-public:
- void operator() (int,const char *) {}; // ERROR - candidates
- void operator() (int,const char *, ...) {}; // ERROR - candidates
-} Log;
-
-class CGLogger : public CLogger
-{
-} GLog;
-
-int main()
-{
- Log(1,"Test");// ERROR - call of.*
- Log(1,"Test %d",3);
- GLog(1,"Test");// ERROR - call of.*
- GLog(1,"Test %d",3);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/parse1.C b/gcc/testsuite/g++.old-deja/g++.brendan/parse1.C
deleted file mode 100644
index 0c62c03..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/parse1.C
+++ /dev/null
@@ -1,17 +0,0 @@
-// Build don't link:
-// GROUPS passed parsing
-class Try {
-private:
- char s;
-public:
- // an escaped double-quote should not call consume_string inside
- // reinit_parse_for_block
- void mf() { s='\"'; }
-};
-
-int main()
-{
- Try x;
- x.mf();
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/parse2.C b/gcc/testsuite/g++.old-deja/g++.brendan/parse2.C
deleted file mode 100644
index cd588e1..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/parse2.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// GROUPS passed parsing
-class BitString {
-public:
- int i;
-};
-
-
-typedef BitString BS;
-typedef ::BitString cBS;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/parse3.C b/gcc/testsuite/g++.old-deja/g++.brendan/parse3.C
deleted file mode 100644
index 8be64a3..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/parse3.C
+++ /dev/null
@@ -1,22 +0,0 @@
-// Build don't link:
-
-// these are marked as expected errors because they evidence an
-// ambiguity in the grammar between expressions and declarations.
-// when the parser's been cleaned up or rewritten, these two error
-// markers can go away, since they'll no longer occur.
-
-class A
-{
- public:
- int high;
- unsigned int low;
- A operator+(const A in);
-};
-
-A A::operator+(const A in)
-{
- if (high==0)
- return A(); // this works
- else
- return (A()); // this works not // gets bogus error - XFAIL *-*-*
-} // gets bogus error - XFAIL *-*-*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/parse4.C b/gcc/testsuite/g++.old-deja/g++.brendan/parse4.C
deleted file mode 100644
index 6526c60..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/parse4.C
+++ /dev/null
@@ -1,24 +0,0 @@
-// Build don't link:
-
-// this is marked as an expected error because it evidences an
-// ambiguity in the grammar between expressions and declarations.
-// when the parser's been cleaned up or rewritten, the error
-// marker can go away, since it'll no longer occur.
-
-class B
-{
-public:
- B( int t ) {}
- void f() {}
-};
-
-int g() { return 0; } // gets bogus error - referenced below XFAIL *-*-*
-
-int main()
-{
- int try1;
- B( try1 ).f(); // no syntax error
- B b( g() ); // no syntax error
- B( ::g() ).f(); // no syntax error
- B( g() ).f(); // gets bogus error - treated as decl XFAIL *-*-*
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/parse5.C b/gcc/testsuite/g++.old-deja/g++.brendan/parse5.C
deleted file mode 100644
index 81a5fe6..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/parse5.C
+++ /dev/null
@@ -1,25 +0,0 @@
-// Build don't link:
-
-// this is marked as an expected error because it evidences an
-// ambiguity in the grammar between expressions and declarations.
-// when the parser's been cleaned up or rewritten, the error
-// marker can go away, since it'll no longer occur.
-
-class ptr8
- {
-public:
- ptr8(unsigned char *string,int len);
- };
-
-template <unsigned int S>
-class buf
- {
-public:
- buf(const ptr8& aRef);
- };
-
-int main()
- {
- unsigned char b[3];
- buf<3> b2(ptr8(&b[0],3)); // gets bogus error - XFAIL *-*-*
- }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/parse6.C b/gcc/testsuite/g++.old-deja/g++.brendan/parse6.C
deleted file mode 100644
index d5ece06..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/parse6.C
+++ /dev/null
@@ -1,13 +0,0 @@
-// Build don't link:
-
-// this is marked as an expected error because it evidences an
-// ambiguity in the grammar between expressions and declarations.
-// when the parser's been cleaned up or rewritten, the error
-// marker can go away, since it'll no longer occur.
-
-class A { };
-
-int main() {
- A a = a;
- A b(b); // gets bogus error - XFAIL *-*-*
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/prepost1.C b/gcc/testsuite/g++.old-deja/g++.brendan/prepost1.C
deleted file mode 100644
index e1b18bc..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/prepost1.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// GROUPS passed prefix-postfix
-class foo {
-public:
- operator ++ (); // ERROR - no type or storage class
-};
-
-int main()
-{
- foo x;
-
- // This should fall back to calling operator++(), and be an error with
- // the -pedantic flag.
- x++;// ERROR -
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/prepost2.C b/gcc/testsuite/g++.old-deja/g++.brendan/prepost2.C
deleted file mode 100644
index 1e34433..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/prepost2.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// GROUPS passed initialization
-class foo {
-public:
- operator ++ (); // ERROR - no type or storage class
- operator ++ (int); // ERROR - no type or storage class
- operator ++ (char); // illegal// ERROR - .*
- operator ++ (short); // illegal// ERROR - .*
- operator ++ (long); // illegal// ERROR - .*
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/prepost3.C b/gcc/testsuite/g++.old-deja/g++.brendan/prepost3.C
deleted file mode 100644
index 4244e4f..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/prepost3.C
+++ /dev/null
@@ -1,7 +0,0 @@
-// Build don't link:
-// GROUPS passed prefix-postfix
-class Y {
-public:
- friend Y operator++ (Y&);
- friend Y operator++ (Y&, char); // illegal// ERROR - .*
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/prepost4.C b/gcc/testsuite/g++.old-deja/g++.brendan/prepost4.C
deleted file mode 100644
index ac31f91..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/prepost4.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// GROUPS passed prefix-postfix
-class Y {
-public:
- friend Y operator++ (Y&);
-
- // This is legal---it's a good test to make sure that grokfndecl's
- // checking of the arguments is sane.
- friend Y operator++ (Y&, int);
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/ptolemy1.C b/gcc/testsuite/g++.old-deja/g++.brendan/ptolemy1.C
deleted file mode 100644
index 3e3b2df..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/ptolemy1.C
+++ /dev/null
@@ -1,23 +0,0 @@
-// Build don't link:
-// GROUPS passed ptolemy-bugs
-class Tcl_Interp;
-
-class PTcl {
-public:
- PTcl(Tcl_Interp* interp = 0);
- ~PTcl();
- int alias(int argc,char** argv);
-};
-
-typedef int (PTcl::*InterpFuncP)(int,char**);
-
-struct InterpTableEntry {
- char* name;
- InterpFuncP func;
-};
-
-
-static InterpTableEntry funcTable[] = {
- { "alias" , &PTcl::alias } ,
- 0, 0
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/ptolemy2.C b/gcc/testsuite/g++.old-deja/g++.brendan/ptolemy2.C
deleted file mode 100644
index 58a10dc..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/ptolemy2.C
+++ /dev/null
@@ -1,69 +0,0 @@
-// GROUPS passed ptolemy-bugs
-#include <iostream.h>
-
-class PTcl {
-public:
- int dispatcher(int which,int argc,char** argv);
- // fns in the table
- int one(int argc, char** argv);
- int two(int argc, char** argv);
- int three(int argc, char** argv);
-};
-
-// An InterpFuncP is a pointer to an PTcl function that takes an argc-argv
-// argument list and returns TCL_OK or TCL_ERROR.
-
-typedef int (PTcl::*InterpFuncP)(int,char**);
-
-struct InterpTableEntry {
- char* name;
- InterpFuncP func;
-};
-
-// Here is the function table and dispatcher function.
-// These macros define entries for the table
-
-#define quote(x) #x
-#define ENTRY(verb) { quote(verb), &PTcl::verb }
-
-static InterpTableEntry funcTable[] = {
- ENTRY(one),
- ENTRY(two),
- ENTRY(three),
- {0, 0}
-};
-
-int PTcl::dispatcher(int which, int argc, char** argv) {
- return (this->*(funcTable[which].func))(argc, argv);
-}
-
-void printargs(char** argv) {
-// while (*argv) {
-// cout << " " << *argv++;
-// }
-// cout << "\n";
-}
-
-int PTcl::one(int, char** argv) {
- cout << "FAIL\n";
- printargs(argv);
- return 0;
-}
-
-int PTcl::two(int, char** argv) {
- cout << "PASS\n";
- printargs(argv);
- return 0;
-}
-
-int PTcl::three(int, char** argv) {
- cout << "FAIL\n";
- printargs(argv);
- return 0;
-}
-
-int main (int argc, char** argv) {
- PTcl obj;
- obj.dispatcher(1,argc,argv);
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/ptrmem1.C b/gcc/testsuite/g++.old-deja/g++.brendan/ptrmem1.C
deleted file mode 100644
index 49c9f75..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/ptrmem1.C
+++ /dev/null
@@ -1,21 +0,0 @@
-// Build don't link:
-// GROUPS passed pointers-to-members
-class my_class
-{
-public:
- typedef void func_type (int num);
- my_class (int num, func_type* proc);
- void dispatch (void);
-private:
- int _num;
- func_type *_proc;
-};
-
-my_class::my_class (int num, func_type* proc) : _num(num), _proc(proc)
-{
-}
-
-void my_class::dispatch (void)
-{
- _proc(_num);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/ptrmem2.C b/gcc/testsuite/g++.old-deja/g++.brendan/ptrmem2.C
deleted file mode 100644
index 2af19e0..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/ptrmem2.C
+++ /dev/null
@@ -1,26 +0,0 @@
-// Build don't link:
-// GROUPS passed pointers-to-members
-struct C {
- struct N {
- int g1(int);
- int g2(int);
- };
-
- typedef int (N::*pmfn)(int);
-
- int f1(int);
- int f2(int);
-};
-
-int (C::*f)(int) = &C::f1;
-
-/*
- The compiler should not crash on the line below; this change fixes it:
- * cp-tree.c (list_hash_lookup_or_cons): Make sure the type doesn't
- have TYPE_PTRMEMFUNC_P set before we try to build its
- CLASSTYPE_ID_AS_LIST.
-*/
-
-C::pmfn h = &C::N::g1;
-
-int (C::N::*g)(int) = &C::N::g2;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/ptrmem3.C b/gcc/testsuite/g++.old-deja/g++.brendan/ptrmem3.C
deleted file mode 100644
index 0f6bf0b..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/ptrmem3.C
+++ /dev/null
@@ -1,32 +0,0 @@
-// Build don't link:
-// GROUPS passed pointers-to-members
-template<class T> class TemplA {
- T t;
-};
-
-
-template<class T> class TemplB {
-public:
- typedef void (T::*TClassMethod)();
-
-private:
-/*
- This line should not crash cuz of the get_decl_list change in this:
- * cp-tree.c (list_hash_lookup_or_cons): Make sure the type doesn't
- have TYPE_PTRMEMFUNC_P set before we try to build its
- CLASSTYPE_ID_AS_LIST.
- (get_decl_list): Likewise, when trying to read it.
-*/
- TemplA<TClassMethod> Tmethod;
-};
-
-
-class C {
- int a;
-};
-
-int main(int, char**) {
-
- TemplB<C> test;
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/ptrmem4.C b/gcc/testsuite/g++.old-deja/g++.brendan/ptrmem4.C
deleted file mode 100644
index a4f792e..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/ptrmem4.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// Build don't link:
-// GROUPS passed pointers-to-members
-class X {
- private:
- int i;
- public:
- X(int k) { i=k; }
- int operator=(X &a) { return i = a.i; }
- int operator=(int ii) { return i = ii; }
-};
-int main(void)
-{
- int (X::*op1_ptr)(X&);
- op1_ptr = &X::operator=; // g++ gives error
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/recurse.C b/gcc/testsuite/g++.old-deja/g++.brendan/recurse.C
deleted file mode 100644
index 639dfb3..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/recurse.C
+++ /dev/null
@@ -1,80 +0,0 @@
-// Build don't link:
-// GROUPS passed recursive-aborts
-// types
-typedef unsigned int DBflag; // for storing user flag value
-typedef unsigned long DBoffset; // 32-bit unsigned integer
-typedef DBoffset DBsize; // type for storing sizes of objects
-typedef unsigned char DBbyte; // 8-bit unsigned char
-
-class DBlink
-{
-protected:
- DBbyte link[4]; // hold link in portable MSB first format
-public:
- DBlink(DBoffset = 0, DBflag = 0);
- DBlink &operator=(const DBlink &);
- DBlink &operator=(DBoffset);
- operator DBoffset();
- operator const DBbyte *() { return link; }
- void set_flag() { link[0] |= 0x80; }
- void reset_flag() { link[0] &= 0x7f; }
- int test_flag() const { return (link[0] & 0x80) != 0; }
-};
-
-typedef DBlink DBsizerec; // hold data record size in portable format
-
-// constants
-const DBoffset DB_NULL = 0;
-
-class DBlinkrec
-{
-protected:
- // offsets are stored with MSB in link[0]
- DBlink l; // offset into link file of right child - MSB = red bit
- DBlink r; // offset into link file of left child - MSB = delete
- DBlink d; // offset into parallel data file - MSB = user flag
-public:
- DBlinkrec():l(DB_NULL), r(DB_NULL), d(DB_NULL) {}
- void make_red() // set link to red
- { l.set_flag(); }
- void make_black() // set link to black
- { l.reset_flag(); }
- int is_red() const // indicates whether this is a red link
- { return l.test_flag(); }
- void set_discard() // set discard flag
- { r.set_flag(); }
- void reset_discard() // reset discard flag
- { r.reset_flag(); }
- int is_discarded() const // check discard flag
- { return r.test_flag(); }
- void set_flag() // set user flag
- { d.set_flag(); }
- void reset_flag() // reset user flag
- { d.reset_flag(); }
- int is_flag() const // check user flag
- { return d.test_flag(); }
-
- friend class DataBase;
-};
-
-class DBpathrec : public DBlinkrec
-{
- DBoffset offset; // offset of link record in LNK file
-public:
- DBpathrec():offset(DB_NULL) { }
- DBpathrec(DBoffset off, const DBlinkrec &lr):offset(off), DBlinkrec(lr) {}
- operator DBoffset() { return offset; }
- DBpathrec &operator=(DBoffset off) { offset = off; return *this; }
- DBpathrec &operator=(const DBpathrec &pr)
- { offset = pr.offset; (DBlinkrec)*this = (DBlinkrec)pr; return *this; }
-
- friend class DataBase;
-};
-
-int main()
-{
- DBpathrec a(), b();
-
- a = b;// ERROR - non-lvalue in assignment.*
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/redecl1.C b/gcc/testsuite/g++.old-deja/g++.brendan/redecl1.C
deleted file mode 100644
index 39a432c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/redecl1.C
+++ /dev/null
@@ -1,5 +0,0 @@
-// Build don't link:
-// GROUPS passed redeclaration
-inline int min(int x, int y) {return x < y ? x : y;} /* 235 */// ERROR - .*
-int min(int a, int b);
-inline int min(int a, int b) {return (a < b)?a:b;}// ERROR - .*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/redecl2.C b/gcc/testsuite/g++.old-deja/g++.brendan/redecl2.C
deleted file mode 100644
index 5894219..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/redecl2.C
+++ /dev/null
@@ -1,51 +0,0 @@
-// GROUPS passed redeclaration
-// Check that if multiple declarations of the same single
-// function are present in different places in the same file,
-// and if these declarations differ (as allowed) in the number
-// of argument defaults provided, that correct values are
-// passed at all call points anyway.
-
-extern "C" void printf (char *, ...);
-
-void receiver (int ii, int jj);
-
-void sender_1 ()
-{
- receiver (3,7);
-}
-
-void receiver (int ii, int jj = 9);
-
-void sender_2 ()
-{
- receiver (5);
-}
-
-int ii_sum = 0;
-int jj_sum = 0;
-
-void sender_3 ();
-
-int main ()
-{
- sender_1 ();
- sender_2 ();
- sender_3 ();
- if (ii_sum != 13 || jj_sum != 25)
- printf ("FAIL\n");
- else
- printf ("PASS\n");
-
- return 0;
-}
-
-void receiver (int ii, int jj)
-{
- ii_sum += ii;
- jj_sum += jj;
-}
-
-void sender_3 ()
-{
- receiver (5);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/redecl3.C b/gcc/testsuite/g++.old-deja/g++.brendan/redecl3.C
deleted file mode 100644
index 5987e0e..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/redecl3.C
+++ /dev/null
@@ -1,17 +0,0 @@
-// Build don't link:
-// GROUPS passed redeclaration
-class foo
-{
-public:
- int bar(int a);
-};
-
-
-void bar(int &a);
-
-int foo::bar(int a) {
- int a = 0; // Should this be an error ?// ERROR - declaration.*
-
- bar(a);
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/reference1.C b/gcc/testsuite/g++.old-deja/g++.brendan/reference1.C
deleted file mode 100644
index 84ad6f4..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/reference1.C
+++ /dev/null
@@ -1,53 +0,0 @@
-// Special g++ Options: -w
-// GROUPS passed references
-// Check that if a reference is initialized to refer to a value
-// which is returned from a function call, the actual call to
-// the function is only invoked for the original initialization
-// of the reference, and not for each subsequent use of the
-// reference.
-//
-// This test fails with G++ 1.35.0- (pre-release).
-// Reported 4/4/89 by Kim Smith
-
-extern "C" void printf (char *, ...);
-
-struct base {
- mutable int data_member;
-
- base () {}
- void function_member () const;
-};
-
-base base_object;
-
-base base_returning_function ();
-
-int call_count = 0;
-
-int main ()
-{
- const base& base_ref = base_returning_function ();
-
- base_ref.function_member ();
- base_ref.function_member ();
- base_ref.data_member = 99;
-
- if (call_count == 1)
- printf ("PASS\n");
- else
- printf ("FAIL\n");
-
- return 0;
-}
-
-base base_returning_function ()
-{
- base local_base_object;
-
- call_count++;
- return local_base_object;
-}
-
-void base::function_member () const
-{
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/rtti1.C b/gcc/testsuite/g++.old-deja/g++.brendan/rtti1.C
deleted file mode 100644
index 6dcdff3..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/rtti1.C
+++ /dev/null
@@ -1,8 +0,0 @@
-// Build don't link:
-// GROUPS passed RTTI
-#include <typeinfo>
-
-struct B { virtual ~B(){} };
-struct D0 : public virtual B { virtual ~D0(){} };
-struct D1 : public virtual D0 { virtual ~D1(){} };
-struct C : public virtual B, public D1 { virtual ~C() { } };
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/scope1.C b/gcc/testsuite/g++.old-deja/g++.brendan/scope1.C
deleted file mode 100644
index babbb01..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/scope1.C
+++ /dev/null
@@ -1,8 +0,0 @@
-// Build don't link:
-// GROUPS passed scoping
-int f (int i) {
- if (i)
- for (int j = i; j; j--)
- ;
- return j; // error: j should only be in scope inside the body of `for'// ERROR - .*
-} // ERROR - non-void
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/scope2.C b/gcc/testsuite/g++.old-deja/g++.brendan/scope2.C
deleted file mode 100644
index fccd1d6..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/scope2.C
+++ /dev/null
@@ -1,29 +0,0 @@
-// Build don't link:
-// GROUPS passed scoping
-class A
-{
- public:
- A() {}
- ~A() {}
- virtual void f() {}
-};
-
-class B : public A
-{
- public:
- B() {}
- ~B() {}
- virtual void f() {}
-};
-
-
-B GLOBAL_B;
-
-B& foo() {return GLOBAL_B;}
-
-int main()
-{
- // build_scoped_method_call and build_scoped_ref should know how
- // to deal with a reference for this
- foo().A::f();
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/scope3.C b/gcc/testsuite/g++.old-deja/g++.brendan/scope3.C
deleted file mode 100644
index cf78430..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/scope3.C
+++ /dev/null
@@ -1,25 +0,0 @@
-// Build don't link:
-// GROUPS passed scoping
-// This is fixed when NEW_CLASS_SCOPING is on.
-
-template<class T>
-class ArrayG {
-public:
- ArrayG();
-protected:
- const unsigned INITIAL;
- T* array;
-};
-
-template<class T>
-ArrayG<T>::ArrayG():
-array(new T[INITIAL])
-{ }
-
-struct X {
- struct Correspondence {
- int i;
- };
-
- void fill(ArrayG<Correspondence>& a);
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/scope4.C b/gcc/testsuite/g++.old-deja/g++.brendan/scope4.C
deleted file mode 100644
index a6781ab..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/scope4.C
+++ /dev/null
@@ -1,31 +0,0 @@
-// Build don't link:
-// GROUPS passed scoping
-class BitString {
-public:
- int i;
- int length() const;
-};
-
-typedef BitString BS;
-
-class V {
-public:
- class BitString {
- public:
- static int x(const ::BitString& value);
- static int y(const class ::BitString& value); // should be parsed ok
- static int z(const BS& value);
- };
-};
-
-int
-V::BitString::x(const ::BitString& value)
-{ return value.length(); }
-
-int
-V::BitString::y(const class ::BitString& value) // should be parsed ok
-{ return value.length(); }
-
-int
-V::BitString::z(const BS& value)
-{ return value.length(); }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/scope5.C b/gcc/testsuite/g++.old-deja/g++.brendan/scope5.C
deleted file mode 100644
index 7532369..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/scope5.C
+++ /dev/null
@@ -1,21 +0,0 @@
-// Build don't link:
-// GROUPS passed scoping
-class Integer {
-public:
- int i;
-};
-
-class Type {
- enum Class { ENUM, INTEGER };
-
- class Description {
- public:
-
- };
-
- class Integer: public Description {
- public:
- ::Integer low;
- ::Integer high;
- };
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/shadow1.C b/gcc/testsuite/g++.old-deja/g++.brendan/shadow1.C
deleted file mode 100644
index 6a1d9d1..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/shadow1.C
+++ /dev/null
@@ -1,8 +0,0 @@
-// Build don't link:
-// GROUPS passed errors
-void f( int a) {
- int a; // this should be an error now// ERROR - .*
- {
- int a;
- }
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/sizeof1.C b/gcc/testsuite/g++.old-deja/g++.brendan/sizeof1.C
deleted file mode 100644
index c8242eb..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/sizeof1.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// Special g++ Options: -pedantic-errors
-// GROUPS passed sizeof
-// ARM $5.3.2
-
-void f() { }
-
-int
-main()
-{
- // sizeof may not be applied to a function
- int i = sizeof( f);// ERROR - .*
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/sizeof2.C b/gcc/testsuite/g++.old-deja/g++.brendan/sizeof2.C
deleted file mode 100644
index ddac679..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/sizeof2.C
+++ /dev/null
@@ -1,18 +0,0 @@
-// Build don't link:
-// Special g++ Options: -pedantic-errors
-// GROUPS passed sizeof
-// ARM $5.3.2
-
-void f() { }
-
-struct foo { int bit : 1; };
-
-int
-main()
-{
- // sizeof may not be applied to a bit-field
- foo f;
- int i = sizeof (f.bit);// ERROR - .*
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/sizeof3.C b/gcc/testsuite/g++.old-deja/g++.brendan/sizeof3.C
deleted file mode 100644
index e6972ca..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/sizeof3.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// Special g++ Options: -pedantic-errors
-// GROUPS passed sizeof
-// ARM $5.3.2
-
-class bar;
-
-int
-main()
-{
- // sizeof may not be applied to an undefined class
- int k = sizeof (bar);// ERROR - .*
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/sizeof4.C b/gcc/testsuite/g++.old-deja/g++.brendan/sizeof4.C
deleted file mode 100644
index 62d76c0..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/sizeof4.C
+++ /dev/null
@@ -1,13 +0,0 @@
-// Build don't link:
-// Special g++ Options: -pedantic-errors
-// GROUPS passed sizeof
-// ARM $5.3.2
-
-int
-main()
-{
- // sizeof may not be applied to the type void
- int l = sizeof (void);// ERROR - .*
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/sizeof5.C b/gcc/testsuite/g++.old-deja/g++.brendan/sizeof5.C
deleted file mode 100644
index 0ef9d9c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/sizeof5.C
+++ /dev/null
@@ -1,17 +0,0 @@
-// GROUPS passed sizeof
-// ARM $5.3.2
-
-extern "C" void printf (char *, ...);
-
-class foo {};
-
-int
-main ()
-{
- // The size of any class or class object is larger than zero.
- int i = sizeof (foo);
- if (i > 0)
- printf ("PASS\n");
- else
- printf ("FAIL\n");
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/sorry1.C b/gcc/testsuite/g++.old-deja/g++.brendan/sorry1.C
deleted file mode 100644
index caa9276..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/sorry1.C
+++ /dev/null
@@ -1,36 +0,0 @@
-// Build don't link:
-// GROUPS passed old-sorry
-class a {
-public:
- int* foo();
-};
-
-a aa;
-a* ap;
-
-class b {
-public:
- int ok(int* p =aa.foo());
-
- // dump_init should know what to do with this NON_LVALUE_EXPR
- int f(int* p =ap->foo());
-};
-
- int
-b::ok(int *p)
-{
- return 0;
-}
-
- int
-b::f(int *p)
-{
- return 0;
-}
- void
-bar()
-{
- b b;
- b.ok();
- b.f();
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/static1.C b/gcc/testsuite/g++.old-deja/g++.brendan/static1.C
deleted file mode 100644
index b30c796..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/static1.C
+++ /dev/null
@@ -1,4 +0,0 @@
-// Build don't link:
-// GROUPS passed static
-class A { public: int a; };// ERROR - .*
-void foo7 () { A::a = 3; }// ERROR - .*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/static2.C b/gcc/testsuite/g++.old-deja/g++.brendan/static2.C
deleted file mode 100644
index 8fd5ffc..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/static2.C
+++ /dev/null
@@ -1,19 +0,0 @@
-// Build don't link:
-// GROUPS passed static
-class A
-{
- public:
- void member(void)
- {
- }
-
- static void staticMember()
- {
- member (); // illegal, no object for calling non-static method// ERROR - .*
- }
-};
-
-int main()
-{
- A::staticMember();
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/static3.C b/gcc/testsuite/g++.old-deja/g++.brendan/static3.C
deleted file mode 100644
index 5c52f0e..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/static3.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// GROUPS passed static
-class foo{
-public:
- static void bar( int i ){ value = i; }
- static int value;// ERROR - .*
-};
-
-const int foo::value = 0; // should be an error.// ERROR - .*
-
-int main(){
- foo::bar( 1 );
- return 0;
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/synth1.C b/gcc/testsuite/g++.old-deja/g++.brendan/synth1.C
deleted file mode 100644
index 5356796..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/synth1.C
+++ /dev/null
@@ -1,33 +0,0 @@
-// Build don't link:
-// Special g++ Options: -pedantic-errors -g -Wall
-// GROUPS passed synthetics
-// excess errors test - XFAIL sparc64-*-elf
-// Check to make sure that g++ doesn't get freaked out about the use
-// of generated methods that it supposedly "can't see".
-
-class Char {
-public:
- Char();
- Char(char v);
-
- // synthetic copy-constructor and operator=
-private:
- char value;
-};
-
-class XChar: public Char {
-public:
- XChar();
- XChar(char v, int serial);
-
- void operator=(const XChar& other);
-private:
- int serial;
-};
-
-void
-XChar::operator=(const XChar& other)
-{
- Char::operator=(other);
- // serial stays the same
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template1.C b/gcc/testsuite/g++.old-deja/g++.brendan/template1.C
deleted file mode 100644
index e6609fd..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template1.C
+++ /dev/null
@@ -1,17 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-// g++-2.2.1: member functions returning a template type
-
-
-template <class T> struct list { };
-
-struct A
-{
- list<int> L;
-
- list<int> get_list();
-
-};
-
-
-list<int> A::get_list() { return L; }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template11.C b/gcc/testsuite/g++.old-deja/g++.brendan/template11.C
deleted file mode 100644
index 4a953a3..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template11.C
+++ /dev/null
@@ -1,47 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-template <class Called>
-class aCallback
-{
-public:
- aCallback(Called& obj, int (Called::*met)());
-
- int callback();
-
-protected:
-
-private:
- // the object to call
- Called& object;
-
- // the method to apply
- int (Called::*method)();
-
-};
-
-template <class Called>
-aCallback<Called>::aCallback(Called& obj,
- int (Called::*met)()) :
-object(obj),
-method(met)
-{};
-
-template <class Called>
-int aCallback<Called>::callback()
-{
- return (object.*method)();
-}
-
-struct myStruct
-{
- int action() {return 24;};
-};
-
-int main()
-{
- myStruct toto;
-
- aCallback<myStruct> cb(toto, &myStruct::action);
-
- return cb.callback();
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template12.C b/gcc/testsuite/g++.old-deja/g++.brendan/template12.C
deleted file mode 100644
index 2165ae2..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template12.C
+++ /dev/null
@@ -1,8 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-inline void foo (const int &x) {}
-
-template <class type>
-inline void foo (const type &x) {x.eat_this_and_die();}
-
-int main (int argc, char **argv) {foo (argc);}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template13.C b/gcc/testsuite/g++.old-deja/g++.brendan/template13.C
deleted file mode 100644
index 653ef21..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template13.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-template<class T>
-class ListS {
-public:
- class Vix {
- public:
- Vix();
- };
-};
-
-template<class T>
-ListS<T>::Vix::Vix()
-{ }
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template15.C b/gcc/testsuite/g++.old-deja/g++.brendan/template15.C
deleted file mode 100644
index b830505..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template15.C
+++ /dev/null
@@ -1,19 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-template<class T> class Stack {
- public:
- Stack (int s = 10); //Comment out "= 10" and it will compile
- ~Stack(void); //Omitting "void" doesn't help
-};
-
-template<class T> Stack<T>::~Stack(void)
-{ }
-
-//If this definition comes before the one for ~Stack, the error message
-//about redeclaration of `void Stack<int>::~Stack()' will not occur.
-template<class T> Stack<T>::Stack(int s)
-{ }
-
-int main () {
- Stack<int> stk(10);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template16.C b/gcc/testsuite/g++.old-deja/g++.brendan/template16.C
deleted file mode 100644
index ec13a24..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template16.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-template<class T> class TList {
- typedef void (T::*TVOIDFUNT)();
- typedef T* (T::*TTPFUNT)(T*);
-};
-
-class A;
-class B : TList<A> { };
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template17.C b/gcc/testsuite/g++.old-deja/g++.brendan/template17.C
deleted file mode 100644
index e6c2652..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template17.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-struct Regex { int i; Regex(char *, int); };
-template<class KEY>
-class NDAMName {
-public:
- static const Regex pattern;
- static unsigned sequence_number;
-};
-
-const Regex NDAMName<'L'>::pattern("^[Ll](.*)$", 1);// ERROR - type/value.*
-unsigned NDAMName<'L'>::sequence_number = 0;// ERROR - type/value
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template18.C b/gcc/testsuite/g++.old-deja/g++.brendan/template18.C
deleted file mode 100644
index 5c6479c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template18.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-template<class T> class X;
-typedef X<int> IX;
-
-template<class T>
-class X {
-public:
- T x;
-};
-
-struct A {
- IX c;
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template19.C b/gcc/testsuite/g++.old-deja/g++.brendan/template19.C
deleted file mode 100644
index a8b33c1..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template19.C
+++ /dev/null
@@ -1,26 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-template <class T>
-class Base
-{
-public:
- Base() { }
-};
-
-template <class memberType, class keyType>
-class Middle : public Base<memberType>
-{
-public:
- Middle (keyType const & (*ko) (memberType const &))
- {
- }
-};
-
-// EXCHANGE the following lines for this code to work.
-//template <class memberType, class keyType> class Middle;
-template <class T, class keyType> class Middle;
-
-struct Test : public Middle <int, int>
-{
- Test();
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template2.C b/gcc/testsuite/g++.old-deja/g++.brendan/template2.C
deleted file mode 100644
index ca60fa7..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template2.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-template <class Q>
-class Conc {
-public:
- static int body();
-};
-
-template <class Q>
-int Conc<Q>::body() {return 0;}
-
-int main () {
- Conc<int> s2;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template20.C b/gcc/testsuite/g++.old-deja/g++.brendan/template20.C
deleted file mode 100644
index da26f9a..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template20.C
+++ /dev/null
@@ -1,21 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-template <class A, class B> class Map;
-
-class Foo
-{
-public:
- static Map<int,int> bar;
-};
-
-template <class A, class B>
-class Map
-{
-public :
- int find();
-};
-
-int main()
-{
- int z = Foo::bar.find();
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template21.C b/gcc/testsuite/g++.old-deja/g++.brendan/template21.C
deleted file mode 100644
index 9d61391..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template21.C
+++ /dev/null
@@ -1,43 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-template<class T>
-class L {
-public:
- L();
-
- T x[30];
- int doit(int i) const;
-};
-
-#ifdef BUG
-template<class T>
-int
-L<T>::doit(int i) const
-{
- return x[i].z;
-}
-#endif
-
-class X {
-public:
- class Y {
- public:
- Y();
- Y(int);
-
- int z;
- };
-
- L<Y> ly;
-};
-
-#ifndef BUG
-template<class T>
-int
-L<T>::doit(int i) const
-{
- return x[i].z;
-}
-#endif
-
-static X x;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template22.C b/gcc/testsuite/g++.old-deja/g++.brendan/template22.C
deleted file mode 100644
index 28c70b3..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template22.C
+++ /dev/null
@@ -1,22 +0,0 @@
-// GROUPS passed templates
-extern "C" int printf (const char *, ...);
-
-template <class T>
-class Foo
-{
-public:
- void func (int const& i);
-};
-
-template <class T>
-void Foo<T>::
-func (int const& i)
-{}
-
-
-int main ()
-{
- Foo<int const> foo;
- printf ("PASS\n");
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template23.C b/gcc/testsuite/g++.old-deja/g++.brendan/template23.C
deleted file mode 100644
index f38d420..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template23.C
+++ /dev/null
@@ -1,34 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-template <class T>
-class T_Base
-{};
-
-template <class T>
-class T_Derived
-: public T_Base<T>
-{};
-
-
-class Base
-{
-public:
- Base (float name);
-};
-
-class Derived
-: public Base
-{
-private:
- T_Base<int>* data_; // Fix (1): Change date_ from T_Base<int>* to T_Derived<int>*
-
-public:
- Derived (float name);
-};
-
-
-Derived::
-Derived (float name)
-: Base(name),
- data_(new T_Derived<int>())
-{}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template24.C b/gcc/testsuite/g++.old-deja/g++.brendan/template24.C
deleted file mode 100644
index 34549a0..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template24.C
+++ /dev/null
@@ -1,20 +0,0 @@
-// GROUPS passed templates
-extern "C" void printf (char *, ...);
-
-template <class F>
-class Temp
-{
- F func_;
-public:
- Temp (F f) :func_(f) {}
-};
-
-int func (int h = 1, int z = 2) { return h+z; }
-
-int main ()
-{
- Temp<int(*)(int, int)> temp (func);
-
- printf ("PASS\n");
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template25.C b/gcc/testsuite/g++.old-deja/g++.brendan/template25.C
deleted file mode 100644
index 5939fed..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template25.C
+++ /dev/null
@@ -1,36 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-template <class T>
-class Temp_Base
-{};
-
-template <class T>
-class Temp_Derived
-: public Temp_Base<T>
-{
-public:
- Temp_Derived (int i = 10) {}
-};
-
-
-class Base
-{
- float r_;
-public:
- Base (float r) : r_(r) {}
-};
-
-class Derived
-: public Base
-{
-private:
- Temp_Base<int>* boo_;
-public:
- Derived (float);
-};
-
-Derived::
-Derived (float form)
-: Base(form),
- boo_(new Temp_Derived<int>)
-{}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template26.C b/gcc/testsuite/g++.old-deja/g++.brendan/template26.C
deleted file mode 100644
index 6dc1555..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template26.C
+++ /dev/null
@@ -1,31 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-class V {
- public:
- V();
- V(int);
- };
-
-template <int I> class AA: public virtual V {
- public:
- AA();
- AA(int);
- };
-
-template <int I> class BB : public virtual V {
- public:
- BB();
- BB(int);
- };
-
-template <int I> AA<I>::AA() {};
-template <int I> AA<I>::AA(int i): V(i) {};
-template <int I> BB<I>::BB() {};
-template <int I> BB<I>::BB(int i) {};
-
-class CC : public AA<1>, public BB<2> {
- public:
- CC();
- CC(int);
- };
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template27.C b/gcc/testsuite/g++.old-deja/g++.brendan/template27.C
deleted file mode 100644
index a2649d4..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template27.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
- template<class K, class V> class MapLS { };
- class String {};
- class X1 { };
- class RefProto { };
- template<class REP> class Ref { };
-
- class MapLS<String, Ref<X1> >: public MapLS<String, RefProto> {
- public:
- ~MapLS();
- };
-
- MapLS<String, Ref<X1> >::~MapLS() { }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template28.C b/gcc/testsuite/g++.old-deja/g++.brendan/template28.C
deleted file mode 100644
index 48ae7fb..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template28.C
+++ /dev/null
@@ -1,13 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-class X {
- const char *fptr;
-public:
- X(const char *ptr) { fptr = ptr; }
- operator const char*() { return fptr; }
-};
-
-int main(){
- X x1("1234");
- X x2(x1+1);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template29.C b/gcc/testsuite/g++.old-deja/g++.brendan/template29.C
deleted file mode 100644
index 2c427d9..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template29.C
+++ /dev/null
@@ -1,12 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
- template <class ElementType> class A
- { public:
- A(ElementType) {}
- ElementType get() const ;
- };
-
- template <class ElementType> ElementType A<ElementType>::get() const
- { return ElementType(0); }
-
-int main() { const A<short> a(3); }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template3.C b/gcc/testsuite/g++.old-deja/g++.brendan/template3.C
deleted file mode 100644
index 3900421..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template3.C
+++ /dev/null
@@ -1,49 +0,0 @@
-// GROUPS passed templates
-extern "C" void printf (char *, ...);
-extern "C" void exit (int);
-
-int count = 0;
-
-void
-die (int x)
-{
- if (x != ++count)
- {
- printf ("FAIL\n");
- exit (1);
- }
-}
-
-class A {
- public:
- void f() const { die (-1); }
-};
-
-
-template <class Item>
-class B : public A {
- public:
- void f() const;
-};
-
-template <class Item>
-inline void B<Item>::f() const { die (1); }
-
-template <class Item>
-class C : public A {
- public:
- void f() const { die (2); }
-};
-
-
-int main()
-{
- B<int> b;
- C<int> c;
-
- b.f(); //- bugged, (A::f() called instead of B::f())
- c.f(); //- works fine (C::f() called)
-
- printf ("PASS\n");
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template30.C b/gcc/testsuite/g++.old-deja/g++.brendan/template30.C
deleted file mode 100644
index 97357d6..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template30.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-
- template<class K, class V> class MapLS { };
- class String {};
- class X1 { };
- class RefProto { };
- template<class REP> class Ref { };
-
- class MapLS<String, Ref<X1> >: public MapLS<String, RefProto> {
- public:
- ~MapLS();
- };
-
- MapLS<String, Ref<X1> >::~MapLS() { }
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template31.C b/gcc/testsuite/g++.old-deja/g++.brendan/template31.C
deleted file mode 100644
index 3a1b149..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template31.C
+++ /dev/null
@@ -1,38 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-// PRMS Id: 13218
-
-struct C {
- int x;
- char y;
- double z;
-};
-C c02;
-
-template <int* ip> struct A {
- int* p;
- A() : p(ip) {}
-};
-
-template <C* cp> struct B {
- C* p;
- B() : p(cp) {}
-};
-
-int i00;
-
-int main(void)
-{
- A<&i00> a00;
-
- extern int i01;
- A<&i01> a01;
-
- B<&c02> b02;
-
- extern C c03;
- B<&c03> b03;
-}
-
-int i01;
-C c03;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template4.C b/gcc/testsuite/g++.old-deja/g++.brendan/template4.C
deleted file mode 100644
index 318cd2e..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template4.C
+++ /dev/null
@@ -1,11 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-// This used to be a circularity in chainon.
-template <class ARG> struct TMPL {
- typedef int ARG::*ARG_data_member_ptr;
- typedef void (ARG::*ARG_func_member_ptr) ();
-};
-
-struct S { };
-
-TMPL<S> object;
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template5.C b/gcc/testsuite/g++.old-deja/g++.brendan/template5.C
deleted file mode 100644
index 39b74d6..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template5.C
+++ /dev/null
@@ -1,48 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-template<class T>
-class Vector
-{
-public:
- Vector(int x);
- ~Vector();
- T& operator [] (int i);
-
-private:
- T* v;
- int sz;
-} ;
-
-template<class T>
-Vector<T>::Vector(int x)
-{
- sz = x;
- v = new T (sz);
-} ;
-
-template<class T>
-Vector<T>::~Vector()
- { delete [] v; } ;
-
-template<class T>
-T &
-Vector<T>::operator [] (int i)
- { return v[i]; } ;
-
-int
-main(int, char **)
-{
- Vector<int> intvec(3);
-
- intvec[0] = 1;
- intvec[1] = 2;
- intvec[2] = 3;
-
- for (int i = 0; i < 3; i++)
- intvec[i];
-
- return 0;
-}
-
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template6.C b/gcc/testsuite/g++.old-deja/g++.brendan/template6.C
deleted file mode 100644
index 96459ca..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template6.C
+++ /dev/null
@@ -1,30 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-struct B {
-};
-
-struct X : B {
- ~X ();
-};
-
-struct Request {
- X s;
-};
-
-template <class ET> class TC {
- ET data;
-};
-
-struct TMem {
-
- ~TMem() {}
-
- TC<Request> *req;
-};
-
-struct FIO {
-
- void init ();
-
- FIO () { init(); }
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template7.C b/gcc/testsuite/g++.old-deja/g++.brendan/template7.C
deleted file mode 100644
index 59dc483..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template7.C
+++ /dev/null
@@ -1,48 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-template <class ET>
-class ChainElem {
-public:
-
- ET data;
-};
-
-template <class ET>
-class Chain {
-public:
-
- ChainElem<ET> *first;
-
- virtual ~Chain() {}
-
-};
-
-struct B {
-};
-
-struct X : B {
- ~X ();
-};
-
-struct TBNFexpression {
-};
-
-struct TCaseLabelPair {
-};
-
-struct TVariant {
- Chain<TCaseLabelPair> CaseLabelList;
-};
-
-struct TCaseConstruct {
- Chain<TBNFexpression> TagFieldPrefixes;
- Chain<TVariant> Variants;
-};
-
-struct Production {
- X TypeName;
-};
-
-struct SimpleSyntax {
- Chain<Production> Productions;
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template8.C b/gcc/testsuite/g++.old-deja/g++.brendan/template8.C
deleted file mode 100644
index 80adbe1..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template8.C
+++ /dev/null
@@ -1,20 +0,0 @@
-// Build don't link:
-// GROUPS passed templates
-#include <stdio.h>
-
-// make sure we accept unions for templates
-template<int n>
-union Double_alignt{
- double for_alignt;
- char array[n];
-
-};
-
-int main(){
-
-
- Double_alignt<20000> heap;
-
- printf(" &heap.array[0] = %d, &heap.for_alignt = %d\n", &heap.array[0], &heap.for_alignt);
-
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/template9.C b/gcc/testsuite/g++.old-deja/g++.brendan/template9.C
deleted file mode 100644
index c4c9c83..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/template9.C
+++ /dev/null
@@ -1,20 +0,0 @@
-// GROUPS passed templates
-// Test that the compiler will emit the definition of min given just
-// the declaration. At one point in the past, it did not.
-// Special g++ Options: -fguiding-decls
-#include <iostream.h>
-
-template <class T> inline T min(T a, T b) { return (a < b) ? a : b;};
-
-double min(double,double); // this should expand the template
-
-main () {
- int a = 1, b = 2;
- double aa = 2.0, bb = 1.2;
- cout << min(a,b) << ", " << min(aa,bb) << "\n";
- if (min (a, aa) == a)
- cout << "PASS" << endl;
- else
- cout << "FAIL" << endl;
-}
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/temporary1.C b/gcc/testsuite/g++.old-deja/g++.brendan/temporary1.C
deleted file mode 100644
index 8c6d4c3..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/temporary1.C
+++ /dev/null
@@ -1,13 +0,0 @@
-// Build don't link:
-// GROUPS passed temporaries
-#include <stdio.h>
-
-int main ()
-{
- int a = 2;
-
- if (----a == 0)
- printf ("a = 0\n");
-
- printf ("a = %d\n", a);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/typedef1.C b/gcc/testsuite/g++.old-deja/g++.brendan/typedef1.C
deleted file mode 100644
index 2f7aa87..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/typedef1.C
+++ /dev/null
@@ -1,29 +0,0 @@
-// Build don't link:
-
-class baseClassA
-{
-public:
-private:
- class internalClassA
- {
- public:
- private:
- typedef int privateType;
-
- privateType memberA;
- };
-};
-
-class baseClassB
-{
-public:
-private:
- class internalClassA
- {
- public:
- private:
- typedef unsigned int privateType;
-
- privateType memberB;
- };
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/union1.C b/gcc/testsuite/g++.old-deja/g++.brendan/union1.C
deleted file mode 100644
index 7a4df26..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/union1.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// Build don't link:
-// GROUPS passed unions
-// This is fixed by finish_anon_union doing a string_cst_equal check on
-// the DECL_SIZE of the decls, instead of comparing the DECL_SIZE nodes.
- unsigned
- hash(const double d)
- {
- static union {
- unsigned asint[2];
- double asdouble;
- };
- asdouble = d;
- return asint[0] ^ asint[1];
- }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/union2.C b/gcc/testsuite/g++.old-deja/g++.brendan/union2.C
deleted file mode 100644
index d913ae8..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/union2.C
+++ /dev/null
@@ -1,13 +0,0 @@
-// Build don't link:
-// GROUPS passed unions
-class B;
-
-struct A {
- A(B* x) : i(x) {}
- A() : i(0) {}
-
- union {
- B* i;
- B* c;
- };
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/union3.C b/gcc/testsuite/g++.old-deja/g++.brendan/union3.C
deleted file mode 100644
index ad8b840..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/union3.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// Build don't link:
-// GROUPS passed unions
-union alan {
-int a;
-char *b;
-alan();
-};
-
-alan mary;
-
-alan::alan()
-{
- a=0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/visibility1.C b/gcc/testsuite/g++.old-deja/g++.brendan/visibility1.C
deleted file mode 100644
index 784c167..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/visibility1.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// Build don't link:
-// GROUPS passed visibility
-class foo {
-protected:
- int i; // ERROR - protected
-};
-
-class bar : public foo {
-public:
- friend void baz (foo *);
-};
-
-void baz (foo *f)
-{
- f->i = 1; // error: i is protected// ERROR - .*
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/visibility10.C b/gcc/testsuite/g++.old-deja/g++.brendan/visibility10.C
deleted file mode 100644
index 4eb3cae..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/visibility10.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// Build don't link:
-// GROUPS passed visibility
-struct base
-{
- protected:
- void base_func() {}// ERROR - .*is protected.*
-};
-
-struct derived : public base
-{
- protected:
- void derived_func(base *ptr) { ptr->base_func(); }// ERROR - within this context
-};
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/visibility2.C b/gcc/testsuite/g++.old-deja/g++.brendan/visibility2.C
deleted file mode 100644
index 09e0f65..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/visibility2.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// GROUPS passed visibility
-class X {
- void g (int); // ERROR - private
-public:
- void g (double);
-};
-
-class Y : public X { void f() { g (1); } }; // ERROR - private
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/visibility3.C b/gcc/testsuite/g++.old-deja/g++.brendan/visibility3.C
deleted file mode 100644
index 6e84da5..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/visibility3.C
+++ /dev/null
@@ -1,38 +0,0 @@
-// Build don't link:
-// GROUPS passed visibility
-// Used to say:
-// manip.cc:17: member `_f' is a private member of class `B<int>'
-// manip.cc:17: member `_a' is a private member of class `B<int>'
-
-class A {};
-
-template <class TP>
-class B
-{
- A &(*_f) (A &, TP);
- TP _a;
-public:
- B (A &(*f) (A &, TP), TP a) : _f (f), _a (a) {}
- friend A &operator<< <>(A &o, const B<TP> &m);
-};
-
-template <class TP>
-inline A &
-operator<< (A &o, const B<TP> &m)
-{
- (*m._f) (o, m._a);
- return o;
-}
-
-A &setw (A &, int);
-B<int> setw (int n)
-{
- return B<int> (setw, n);
-}
-
-A x;
-
-void f ()
-{
- x << setw (2);
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/visibility4.C b/gcc/testsuite/g++.old-deja/g++.brendan/visibility4.C
deleted file mode 100644
index 1e7aea1..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/visibility4.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// Build don't link:
-// GROUPS passed visibility
-template <class T>
-class Feld {
-public:
- Feld(const Feld&) {}
-};
-
-class Polynom : private Feld<double> {
- Polynom();
- friend Polynom f(const Polynom&);
-};
-
-Polynom f(const Polynom& p) { return p; }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/visibility5.C b/gcc/testsuite/g++.old-deja/g++.brendan/visibility5.C
deleted file mode 100644
index a53881a..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/visibility5.C
+++ /dev/null
@@ -1,8 +0,0 @@
-// Build don't link:
-// GROUPS passed visibility
-template<int K> class B;
-template<int K> class A {int n; friend class B<K>;};
-template<int K> class B {public: void method(A<K>) const;};
-template<int K> void B<K>::method(A<K> X) const {X.n=0;}
-typedef B<2> B2;
-
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/visibility6.C b/gcc/testsuite/g++.old-deja/g++.brendan/visibility6.C
deleted file mode 100644
index 85f47b5..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/visibility6.C
+++ /dev/null
@@ -1,17 +0,0 @@
-// Build don't link:
-// GROUPS passed visibility
-class bottom
-{
-public:
- int b; // ERROR - private
-};
-class middle : private bottom
-{
-public:
- void foo () { b; }
-};
-class top : public middle
-{
-public:
- void bar () { b; }// ERROR - .*
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/visibility7.C b/gcc/testsuite/g++.old-deja/g++.brendan/visibility7.C
deleted file mode 100644
index 670547d..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/visibility7.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// GROUPS passed visibility
-class X
-{
-public:
- void fn ();// ERROR - .*
-};
-class Y : private X
-{};
-
-class Unrelated
-{
-public:
- void foo () { Y y; y.fn (); }// ERROR - .*
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/visibility8.C b/gcc/testsuite/g++.old-deja/g++.brendan/visibility8.C
deleted file mode 100644
index 2d69e7b..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/visibility8.C
+++ /dev/null
@@ -1,15 +0,0 @@
-// Build don't link:
-// GROUPS passed visibility
-// Make sure private inheritance affects the visibility of
-// static members used in an inherited context.
-class foo
-{
-public:
- static int y; // ERROR - private
-};
-class foo1 : private foo
-{ };
-class foo2 : public foo1
-{ public:
- void bar () { y; }// ERROR - .*
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/visibility9.C b/gcc/testsuite/g++.old-deja/g++.brendan/visibility9.C
deleted file mode 100644
index c259929..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/visibility9.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// Build don't link:
-// GROUPS passed visibility
-class A {
-public:
- void aMethod(void) {};// ERROR - .*
-};
-
-class AA : A { };
-
-class B {
-public:
- void thisMethod() {
- AA ana;
- ana.aMethod();// ERROR - .*
- }
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/vtables1.C b/gcc/testsuite/g++.old-deja/g++.brendan/vtables1.C
deleted file mode 100644
index 984ce18..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/vtables1.C
+++ /dev/null
@@ -1,42 +0,0 @@
-// GROUPS passed virtual-tables
-// Check that virtual function tables are generated and used
-// even for struct's/classes which have no explicit constructors.
-
-extern "C" void printf (char *, ...);
-
-int base_func_member_1_called = 0;
-int derived_func_member_1_called = 0;
-
-struct base {
- virtual void func_member_1 ()
- {
- base_func_member_1_called++;
- }
-};
-
-struct derived : public base {
- virtual void func_member_1 ()
- {
- derived_func_member_1_called++;
- }
-
- virtual void func_member_2 ()
- {
- }
-};
-
-base* bp1;
-base* bp2;
-
-int main ()
-{
- bp1 = new base;
- bp2 = new derived;
-
- bp1->func_member_1 ();
- bp2->func_member_1 ();
-
- printf ("PASS\n");
-
- return 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/warnings1.C b/gcc/testsuite/g++.old-deja/g++.brendan/warnings1.C
deleted file mode 100644
index 0296362..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/warnings1.C
+++ /dev/null
@@ -1,6 +0,0 @@
-// Build don't link:
-// GROUPS passed warnings
-// there should be a warning about foo only defining private methods
-class foo {
- int bar();
-};// ERROR - .*
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/warnings10.C b/gcc/testsuite/g++.old-deja/g++.brendan/warnings10.C
deleted file mode 100644
index 78ddf77..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/warnings10.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// GROUPS passed warnings
-void foo()
-{
- int i;
- if (1) {
- for (int i = 0; i < 10; i++)
- ;
- }
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/warnings2.C b/gcc/testsuite/g++.old-deja/g++.brendan/warnings2.C
deleted file mode 100644
index 49971d5..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/warnings2.C
+++ /dev/null
@@ -1,7 +0,0 @@
-// Build don't link:
-// GROUPS passed warnings
-class K {
-public:
- void f() {
- }; // there should be no warning about this semicolon
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/warnings3.C b/gcc/testsuite/g++.old-deja/g++.brendan/warnings3.C
deleted file mode 100644
index 14fe997..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/warnings3.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// Build don't link:
-// Special g++ Options: -O2 -Wall
-// GROUPS passed warnings
-class A {
-int i;
-public:
- void funcA(void) {
- funcB();
- }
-
- // The compiler should not emit a warning about not being
- // able to inline this function.
- void funcB(void) {
- i++;
- }
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/warnings4.C b/gcc/testsuite/g++.old-deja/g++.brendan/warnings4.C
deleted file mode 100644
index d733522..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/warnings4.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// GROUPS passed warnings
-int
-main ()
-{
- register int x;
- int * foo = &x; // in C++ it's perfectly legal to do this
-
- return 0;
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/warnings5.C b/gcc/testsuite/g++.old-deja/g++.brendan/warnings5.C
deleted file mode 100644
index 5a953fd..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/warnings5.C
+++ /dev/null
@@ -1,10 +0,0 @@
-// Build don't link:
-// GROUPS passed warnings
-enum TypeKind { ATK, BTK } ;
-
-struct Type {
- enum TypeKind kind : 8;
- void setBTK();
-};
-
-void Type::setBTK() { kind = BTK; }
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/warnings6.C b/gcc/testsuite/g++.old-deja/g++.brendan/warnings6.C
deleted file mode 100644
index 785c083..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/warnings6.C
+++ /dev/null
@@ -1,9 +0,0 @@
-// Build don't link:
-// Special g++ Options: -O2 -Wall -ansi -pedantic
-// GROUPS passed warnings
-// should not emit this warning about func:
-// x.C:2: warning: invalid storage class for function `func'
-//
-template <class T> inline void func(T)
-{
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/warnings7.C b/gcc/testsuite/g++.old-deja/g++.brendan/warnings7.C
deleted file mode 100644
index 24e7a2c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/warnings7.C
+++ /dev/null
@@ -1,21 +0,0 @@
-// Build don't link:
-// Special g++ Options: -O2 -Wall
-// GROUPS passed warnings
-template<class T>
-class X {
-public:
- void kill(unsigned i)
- { vec[i].~T(); }
- T *vec;
-};
-
-class Y { };
-
-void
-x()
-{
- X<int> x;
- x.kill(0);
- X<Y> y;
- y.kill(0);
-};
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/warnings8.C b/gcc/testsuite/g++.old-deja/g++.brendan/warnings8.C
deleted file mode 100644
index 5599918..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/warnings8.C
+++ /dev/null
@@ -1,7 +0,0 @@
-// Build don't link:
-// Special g++ Options: -Wall
-// GROUPS passed warnings
-bool foo(unsigned char c)
-{
- return (c & 17) != 0;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/warnings9.C b/gcc/testsuite/g++.old-deja/g++.brendan/warnings9.C
deleted file mode 100644
index c46f2a1..0000000
--- a/gcc/testsuite/g++.old-deja/g++.brendan/warnings9.C
+++ /dev/null
@@ -1,7 +0,0 @@
-// Build don't link:
-// Special g++ Options: -Wall
-// GROUPS passed warnings
-inline int foo()
-{
- return 3;
-}
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/891229_02.C b/gcc/testsuite/g++.old-deja/g++.bugs/891229_02.C
deleted file mode 100644
index 042096c..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/891229_02.C
+++ /dev/null
@@ -1,24 +0,0 @@
-// g++ 1.36.1 bug 891229_02
-
-// g++ limits the scope of names which are declared as typedef names within
-// another type to that other type.
-
-// This conflicts with the (global) scope given to such names by cfront 2.0.
-
-// Cfront 2.0 passes this test.
-
-// Note 2/15/94: The standard has changed; this limiting of scope is correct
-// behavior. See 9.9. --jason
-
-// keywords: typedef, nested types, scope
-
-struct foo {
- foo ();
- typedef void (*function_p) (void);
-};
-
-function_p fp; // ERROR - no such type in scope
-
-foo::foo () {}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/891230_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/891230_01.C
deleted file mode 100644
index ac49e0b..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/891230_01.C
+++ /dev/null
@@ -1,20 +0,0 @@
-// g++ 1.36.1 bug 891230_01
-
-// g++ gives typedefs which are nested within class declarations a scope
-// which is local to the class declaration itself. This causes examples
-// like the following to get compile-time errors.
-
-// Cfront 2.0 passes this test.
-
-// keywords: typedef, nested types, scope
-
-struct foo {
-
- typedef foo* foo_p;
- void member (foo_p);
-};
-
-void foo::member (foo_p p) { // gets bogus errors
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900107_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900107_01.C
deleted file mode 100644
index 7271f1a..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900107_01.C
+++ /dev/null
@@ -1,37 +0,0 @@
-// g++ 1.36.1 bug 900107_01
-
-// Unlike GCC and Cfront 2.0, the g++ 1.36.1 compiler gives struct, union,
-// and class declarations which are nested within blocks file scope.
-
-// Cfront 2.0 passes this test.
-
-// keywords: block scope, file scope, nested types, tagged types
-
-class c1 { int c1_member1; };
-struct s1 { int s1_member1; };
-union u1 { int u1_member1; };
-enum e1 { e1_val1 };
-typedef int t1;
-
-void foo ()
-{
- class c1 { // gets bogus error
- int c1_member1;
- } c1_local_object_0;
-
- struct s1 { // gets bogus error
- int s1_member1;
- } s1_local_object_0;
-
- union u1 { // gets bogus error
- int u1_member1;
- } u1_local_object_0;
-
- enum e1 { // OK using g++ or GCC, but mishandled by Cfront 2.0.
- e1_value1
- } e1_local_object_0;
-
- typedef int t1; // OK
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900119_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900119_01.C
deleted file mode 100644
index 3c93c52..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900119_01.C
+++ /dev/null
@@ -1,46 +0,0 @@
-// g++ 1.36.1 bug 900119_01
-
-// g++ allows initializers to be included in the declaration of members
-// of classes, structs, unions (even when -pedantic is used).
-
-// This is not allowed by the C++ 2.0 Reference Manual or by Cfront 2.0.
-
-// keywords: member declaration, member initialization
-
-int global_int;
-
-class class0 {
-public:
- int class0_member_0 = 99; /* ERROR - */
- static int class0_member_1 = 99; /* ERROR - */
- int &class0_member_2 = global_int; /* ERROR - */
-
- class0 () : class0_member_2 (global_int) { } /* ERROR - */
-};
-
-
-struct struct0 {
- int struct0_member_0 = 99; /* ERROR - */
- static int struct0_member_1 = 99; /* ERROR - */
- int &struct0_member_2 = global_int; /* ERROR - */
-
- struct0 () : struct0_member_2 (global_int) { } /* ERROR - */
-};
-
-// g++ does not allow unions to have more than one member with an initializer
-
-union union0 {
- int union0_member_0 = 99; /* ERROR - */
-};
-
-union union1 {
- //static int union1_member_0 = 99; /* definitely illegal (9.5) */
-};
-
-union union2 {
- int &union2_member_0 = global_int; /* ERROR - */
-
- union2 () : union2_member_0 (global_int) { } /* ERROR - */
-};
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C
deleted file mode 100644
index ea07968..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900121_01.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// g++ 1.36.1 bug 900121_01
-
-// The following file causes g++ 1.36.1 (and 1.36.2) to abort.
-
-// Cfront 2.0 passes this test.
-
-// keywords: abort, incomplete types, reference types, formal parameters
-
-struct s0; // ERROR - forward declaration
-
-void function (struct s0 &arg1, struct s0 &arg2)
-{
- arg1 = arg2; // ERROR - causes abort
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900121_02.C b/gcc/testsuite/g++.old-deja/g++.bugs/900121_02.C
deleted file mode 100644
index c90dfd9..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900121_02.C
+++ /dev/null
@@ -1,49 +0,0 @@
-// g++ 1.36.1 bug 900121_02
-
-// Assignment of structs is defined as memberwise assignment,
-// however g++ (1.36.2) and Cfront 2.0 differ on the definition
-// of assignment for unions.
-
-// (NOTE: Stroustrup now says that assignment of unions which contain either
-// members or sub-members (base classes are not allowed for unions) which
-// have non-default assignment operators defined for them will be illegal
-// in future.)
-
-// g++ (1.36.2) on the other hand, accepts this program without errors.
-
-// keywords: unions, operator=, inheritance, members
-
-struct s0 {
-
- int i;
-
- void operator= (s0 & arg)
- {
- this->i = arg.i;
- }
-};
-
-struct s1 {
-
- double d;
-
- void operator= (s1 & arg)
- {
- this->d = arg.d;
- }
-};
-
-union u0 {
- s0 u0_member_0; // ERROR -
- s1 u0_member_1; // ERROR -
-};
-
-void function ()
-{
- u0 u0_object_0;
- u0 u0_object_1;
-
- u0_object_0 = u0_object_1;
-};
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900121_05.C b/gcc/testsuite/g++.old-deja/g++.bugs/900121_05.C
deleted file mode 100644
index 03155ab..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900121_05.C
+++ /dev/null
@@ -1,30 +0,0 @@
-// g++ 1.36.1 bug 900121_05
-
-// g++ allows unions to have base types (i.e. to be "derived") and it allows
-// other types to have unions as base types. Both cases are illegal.
-
-// g++ curently does not detect such errors.
-
-// Cfront 2.0 passes this test.
-
-// keywords: unions, inheritance
-
-struct s0 {
- int s0_member;
-};
-
-union u0 : public s0 { /* ERROR - union has base class */
- int u0_member_0;
- int u0_member_1;
-};
-
-union u1 {
- int u1_member_0;
- int u1_member_1;
-};
-
-struct s1 : public u1 { /* ERROR - base class is a union */
- int s1_member_0;
-};
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900127_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900127_01.C
deleted file mode 100644
index 7c24d08..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900127_01.C
+++ /dev/null
@@ -1,25 +0,0 @@
-// g++ 1.36.1 bug 900127_01
-
-// g++ often fails to detect (and issue errors for) ambiguous overload
-// situations. In such cases, one of the possibilities is chosen
-// (apparently arbitrarily). Errors should be issued instead.
-
-// Cfront 2.0 passes this test.
-
-// keywords: function overloading, ambiguity
-
-void foo (int);
-int foo (void);
-
-typedef int (*f_ptr_t1) (void);
-typedef void (*f_ptr_t2) (int);
-
-void bar (f_ptr_t1); // ERROR -
-void bar (f_ptr_t2); // ERROR -
-
-void function ()
-{
- bar (foo); // ERROR - ambiguous
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900127_02.C b/gcc/testsuite/g++.old-deja/g++.bugs/900127_02.C
deleted file mode 100644
index 61cd481..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900127_02.C
+++ /dev/null
@@ -1,46 +0,0 @@
-// g++ 1.36.1 bug 900127_02
-
-// g++ (mostly) keeps separate name spaces for the declarations of data
-// objects and functions.
-
-// This means that a single name may be declared as both a data object and
-// a function within a given scope.
-
-// This fact allows programmers to write code which is not portable to the
-// Cfront translator (which keeps a single namespace for these entities).
-
-// This can also lead to ambiguity when the & (address-of) operator is used.
-
-// Cfront 2.0 passes this test.
-
-// keywords: name spaces, overloading
-
-int global0; // ERROR -
-int global0 (); // ERROR -
-
-int global1 (); // ERROR - xref for below
-int global1; // ERROR - caught
-
-struct struct_0 {
- int class_local (); // ERROR -
- int class_local; // ERROR -
-};
-
-struct struct_1 {
- int class_local; // ERROR -
- int class_local (); // ERROR -
-};
-
-void function_0 ()
-{
- int function_0_local; // ERROR -
- extern int function_0_local (); // ERROR -
-}
-
-void function_1 ()
-{
- int function_1_local (); // ERROR -
- extern int function_1_local; // ERROR -
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900205_02.C b/gcc/testsuite/g++.old-deja/g++.bugs/900205_02.C
deleted file mode 100644
index 505792f..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900205_02.C
+++ /dev/null
@@ -1,28 +0,0 @@
-// g++ 1.36.1 bug 900205_02
-
-// g++ allows constructors to be defined which do not include
-// initializations for reference members of their associated classes.
-
-// Cfront 2.0 does not allow this.
-
-// keywords: reference members, constructors, member initialization
-
-int i;
-
-class c0 {
- int &int_ref;
-public:
- c0 () /* : int_ref(i) */ { // ERROR - reference needs initializer
- }
-};
-
-class c1 {
- int &int_ref;
-public:
- c1 ();
-};
-
-c1::c1() /* : int_ref(i) */ { // ERROR - reference needs initializer
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900205_03.C b/gcc/testsuite/g++.old-deja/g++.bugs/900205_03.C
deleted file mode 100644
index 4c352c8..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900205_03.C
+++ /dev/null
@@ -1,48 +0,0 @@
-// g++ 1.36.1 bug 900205_03
-
-// Section 6.6.3 of the cfront 2.0 Reference Manual says "A return statement
-// without an expression can be used only in functions that do not return
-// a value, that is, a function with the return value type void..."
-
-// Also in 6.6.3: "Flowing off the end of a function is equivalent to a
-// return with no value; this is illegal in a value returning function."
-
-// In contrast to the manual, g++ does not generate ERRORs for cases of
-// "flowing off the end" of non-void functions.
-
-// keywords: return statements, return type, void return, implicit return
-
-// Special g++ Options: -Wreturn-type -pedantic-errors
-
-struct struct00 { };
-
-int global_function_0 () {
-} // ERROR -
-
-struct00 global_function_1 () {
-} // ERROR -
-
-struct struct0 {
-
- int struct0_member_function_0 () {
- } // ERROR -
-
- struct0 struct0_member_function_1 () {
- } // ERROR -
-};
-
-struct struct1 {
-
- int struct1_member_function_0 ();
-
- struct1 struct1_member_function_1 ();
-
-};
-
-int struct1_member_function_0 () {
-} // ERROR -
-
-struct1 struct1::struct1_member_function_1 () {
-} // ERROR -
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900205_04.C b/gcc/testsuite/g++.old-deja/g++.bugs/900205_04.C
deleted file mode 100644
index f763480..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900205_04.C
+++ /dev/null
@@ -1,26 +0,0 @@
-// g++ 1.36.1 bug 900205_04
-
-// g++ allows a class for which an implicit default X::X() constructor must
-// be created (implicitly by the compiler) to be derived from another class
-// which does not have its own default X::X() constructor. This is illegal.
-
-// Cfront 2.0 passes this test.
-
-// keywords: default constructor, inheritance
-
-struct struct0 {
- int data_member;
-
- struct0 (int, void *); // suppresses implicit default constructor
-};
-
-struct0::struct0 (int, void *)
-{
-}
-
-struct struct0_derived_struct_0 : public struct0 {
-}; // ERROR -
-
-// struct0_derived_struct_0 object; // would give g++ error if compiled
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900207_03.C b/gcc/testsuite/g++.old-deja/g++.bugs/900207_03.C
deleted file mode 100644
index 187c070a..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900207_03.C
+++ /dev/null
@@ -1,49 +0,0 @@
-// g++ 1.36.1 bug 900207_03
-
-// g++ fails to allow objects of class or struct types to be initialized
-// using "constructor syntax" in cases where an implicitly generated copy
-// constructor would be invoked for the initialization, and where there is
-// no explicitly specified constructor associated with the type of the
-// object being initialized.
-
-// Note that the type of the error changes depending upon whether or not the
-// type being initialized has any virtual functions associated with it.
-
-// Cfront 2.0 passes this test.
-
-// keywords: implicit copy constructor, initialization
-
-
-// Check construction for a type without virtual function members.
-
-struct struct0 {
- int data_member;
-};
-
-struct0 struct0_gbl_object0;
-struct0 struct0_gbl_object1 (struct0_gbl_object0); // gets bogus error
-
-void struct0_test ()
-{
- struct0 struct0_lcl_object1 (struct0_gbl_object0); // gets bogus error
-}
-
-// Check construction for a type with virtual function members.
-
-struct struct1 {
- int data_member;
-
- virtual void function_member ();
-};
-
-void struct1::function_member () { }
-
-struct1 struct1_gbl_object0;
-struct1 struct1_gbl_object1 (struct1_gbl_object0); // gets bogus error
-
-void struct1_test ()
-{
- struct1 struct1_lcl_object1 (struct1_gbl_object0); // gets bogus error
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900208_02.C b/gcc/testsuite/g++.old-deja/g++.bugs/900208_02.C
deleted file mode 100644
index 7e99abd..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900208_02.C
+++ /dev/null
@@ -1,17 +0,0 @@
-// g++ 1.36.1 bug 900208_02
-
-// g++ does not allow a static member of a class/struct/union to be
-// declared as an array without an explicit upper bound.
-
-// Cfront 2.0 passes this test.
-
-// keywords: static data members, arrays, dimension, array bound
-
-class class0 {
-public:
- static int class0_data_member_0[]; // gets bogus error
-};
-
-int class0::class0_data_member_0[3] = { 1, 2, 3 }; // gets bogus error
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900208_03.C b/gcc/testsuite/g++.old-deja/g++.bugs/900208_03.C
deleted file mode 100644
index 667a174..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900208_03.C
+++ /dev/null
@@ -1,18 +0,0 @@
-// g++ 1.36.1 bug 900208_03
-
-// The Cfront 2.0 reference manual (5.3.3) says "This type must be an
-// object type; functions cannot be allocated this way...".
-
-// g++ fails to detect (at compile time) cases where an attempt is made to
-// allocate a function using new.
-
-// keywords: operator new, function types
-
-typedef void (func_type) ();
-
-void global_function_0 ()
-{
- new func_type; // ERROR - missed by both cfront 2.0 and g++ 1.36.1
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900208_04.C b/gcc/testsuite/g++.old-deja/g++.bugs/900208_04.C
deleted file mode 100644
index bcf0397..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900208_04.C
+++ /dev/null
@@ -1,20 +0,0 @@
-// g++ 1.36.1 bug 900208_04
-
-// The Cfront 2.0 reference manual (5.3.3) says "This type must be an
-// object type; functions cannot be allocated this way...".
-
-// g++ fails to detect (at compile time) cases where an attempt is made to
-// deallocate a function using delete.
-
-// Cfront 2.0 passes this test.
-
-// keywords: operator delete, function types
-
-typedef void (func_type) ();
-
-void global_function_1 (func_type *p)
-{
- delete p; // ERROR - caught by Cfront 2.0 but not by g++ 1.36.1
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900209_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900209_01.C
deleted file mode 100644
index 59871ab..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900209_01.C
+++ /dev/null
@@ -1,20 +0,0 @@
-// g++ 1.36.1 bug 900209_01
-
-// g++ implicitly casts values whose types are "void*" to other pointer
-// types (just as the language rules for C permit). Such implicit
-// conversions are not allowed by the Cfront 2.0 Reference Manual
-// however.
-
-// Cfront 2.0 passes this test.
-
-// keywords: void pointers, type conversions, pointer type conversions
-
-void * void_pointer_object;
-char * char_pointer_object;
-
-void global_function_0 ()
-{
- char_pointer_object = void_pointer_object; // ERROR -
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900210_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900210_01.C
deleted file mode 100644
index 0a98388..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900210_01.C
+++ /dev/null
@@ -1,112 +0,0 @@
-// g++ 1.36.1 bug 900210_01
-
-// g++ allows pointer type values to be assigned to variables of integal
-// types. According to the C++ Reference Manual, this is illegal.
-
-// Cfront 2.0 passes this test.
-
-// keywords: pointer types, integral types, implicit type conversions
-
-int i;
-long l;
-short s;
-char c;
-float f;
-double d;
-long double ld;
-enum {enum_value_0} e;
-
-signed int si;
-signed long sl;
-signed short ss;
-signed char sc;
-
-unsigned int ui;
-unsigned long ul;
-unsigned short us;
-unsigned char uc;
-
-void* vp;
-char* cp;
-int* ip;
-enum {enum_value_1} * ep;
-struct { int member; } * sp;
-void (*fp) (void);
-
-void global_function ()
-{
- i = vp; /* ERROR - */
- i = cp; /* ERROR - */
- i = ip; /* ERROR - */
- i = ep; /* ERROR - */
- i = sp; /* ERROR - */
- i = fp; /* ERROR - */
- l = vp; /* ERROR - */
- l = cp; /* ERROR - */
- l = ip; /* ERROR - */
- l = ep; /* ERROR - */
- l = sp; /* ERROR - */
- l = fp; /* ERROR - */
- s = vp; /* ERROR - */
- s = cp; /* ERROR - */
- s = ip; /* ERROR - */
- s = ep; /* ERROR - */
- s = sp; /* ERROR - */
- s = fp; /* ERROR - */
- c = vp; /* ERROR - */
- c = cp; /* ERROR - */
- c = ip; /* ERROR - */
- c = ep; /* ERROR - */
- c = sp; /* ERROR - */
- c = fp; /* ERROR - */
- si = vp; /* ERROR - */
- si = cp; /* ERROR - */
- si = ip; /* ERROR - */
- si = ep; /* ERROR - */
- si = sp; /* ERROR - */
- si = fp; /* ERROR - */
- sl = vp; /* ERROR - */
- sl = cp; /* ERROR - */
- sl = ip; /* ERROR - */
- sl = ep; /* ERROR - */
- sl = sp; /* ERROR - */
- sl = fp; /* ERROR - */
- ss = vp; /* ERROR - */
- ss = cp; /* ERROR - */
- ss = ip; /* ERROR - */
- ss = ep; /* ERROR - */
- ss = sp; /* ERROR - */
- ss = fp; /* ERROR - */
- sc = vp; /* ERROR - */
- sc = cp; /* ERROR - */
- sc = ip; /* ERROR - */
- sc = ep; /* ERROR - */
- sc = sp; /* ERROR - */
- sc = fp; /* ERROR - */
- ui = vp; /* ERROR - */
- ui = cp; /* ERROR - */
- ui = ip; /* ERROR - */
- ui = ep; /* ERROR - */
- ui = sp; /* ERROR - */
- ui = fp; /* ERROR - */
- ul = vp; /* ERROR - */
- ul = cp; /* ERROR - */
- ul = ip; /* ERROR - */
- ul = ep; /* ERROR - */
- ul = sp; /* ERROR - */
- ul = fp; /* ERROR - */
- us = vp; /* ERROR - */
- us = cp; /* ERROR - */
- us = ip; /* ERROR - */
- us = ep; /* ERROR - */
- us = sp; /* ERROR - */
- us = fp; /* ERROR - */
- uc = vp; /* ERROR - */
- uc = cp; /* ERROR - */
- uc = ip; /* ERROR - */
- uc = ep; /* ERROR - */
- uc = sp; /* ERROR - */
- uc = fp; /* ERROR - */
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900210_02.C b/gcc/testsuite/g++.old-deja/g++.bugs/900210_02.C
deleted file mode 100644
index f900a86..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900210_02.C
+++ /dev/null
@@ -1,112 +0,0 @@
-// g++ 1.36.1 bug 900210_02
-
-// g++ allows integral type values to be assigned to variables of pointer
-// types. According to the C++ Reference Manual, this is illegal.
-
-// Cfront 2.0 passes this test.
-
-// keywords: integral types, pointer types, implicit type conversions
-// Special Options: -ansi -pedantic-errors
-int i;
-long l;
-short s;
-char c;
-float f;
-double d;
-long double ld;
-enum {enum_value_0} e;
-
-signed int si;
-signed long sl;
-signed short ss;
-signed char sc;
-
-unsigned int ui;
-unsigned long ul;
-unsigned short us;
-unsigned char uc;
-
-void* vp;
-char* cp;
-int* ip;
-enum {enum_value_1} * ep;
-struct { int member; } * sp;
-void (*fp) (void);
-
-void global_function ()
-{
- vp = i; /* ERROR - */
- vp = l; /* ERROR - */
- vp = s; /* ERROR - */
- vp = c; /* ERROR - */
- vp = si; /* ERROR - */
- vp = sl; /* ERROR - */
- vp = ss; /* ERROR - */
- vp = sc; /* ERROR - */
- vp = ui; /* ERROR - */
- vp = ul; /* ERROR - */
- vp = us; /* ERROR - */
- vp = uc; /* ERROR - */
- cp = i; /* ERROR - */
- cp = l; /* ERROR - */
- cp = s; /* ERROR - */
- cp = c; /* ERROR - */
- cp = si; /* ERROR - */
- cp = sl; /* ERROR - */
- cp = ss; /* ERROR - */
- cp = sc; /* ERROR - */
- cp = ui; /* ERROR - */
- cp = ul; /* ERROR - */
- cp = us; /* ERROR - */
- cp = uc; /* ERROR - */
- ip = i; /* ERROR - */
- ip = l; /* ERROR - */
- ip = s; /* ERROR - */
- ip = c; /* ERROR - */
- ip = si; /* ERROR - */
- ip = sl; /* ERROR - */
- ip = ss; /* ERROR - */
- ip = sc; /* ERROR - */
- ip = ui; /* ERROR - */
- ip = ul; /* ERROR - */
- ip = us; /* ERROR - */
- ip = uc; /* ERROR - */
- ep = i; /* ERROR - */
- ep = l; /* ERROR - */
- ep = s; /* ERROR - */
- ep = c; /* ERROR - */
- ep = si; /* ERROR - */
- ep = sl; /* ERROR - */
- ep = ss; /* ERROR - */
- ep = sc; /* ERROR - */
- ep = ui; /* ERROR - */
- ep = ul; /* ERROR - */
- ep = us; /* ERROR - */
- ep = uc; /* ERROR - */
- sp = i; /* ERROR - */
- sp = l; /* ERROR - */
- sp = s; /* ERROR - */
- sp = c; /* ERROR - */
- sp = si; /* ERROR - */
- sp = sl; /* ERROR - */
- sp = ss; /* ERROR - */
- sp = sc; /* ERROR - */
- sp = ui; /* ERROR - */
- sp = ul; /* ERROR - */
- sp = us; /* ERROR - */
- sp = uc; /* ERROR - */
- fp = i; /* ERROR - */
- fp = l; /* ERROR - */
- fp = s; /* ERROR - */
- fp = c; /* ERROR - */
- fp = si; /* ERROR - */
- fp = sl; /* ERROR - */
- fp = ss; /* ERROR - */
- fp = sc; /* ERROR - */
- fp = ui; /* ERROR - */
- fp = ul; /* ERROR - */
- fp = us; /* ERROR - */
- fp = uc; /* ERROR - */
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900210_03.C b/gcc/testsuite/g++.old-deja/g++.bugs/900210_03.C
deleted file mode 100644
index 8711d86..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900210_03.C
+++ /dev/null
@@ -1,26 +0,0 @@
-// g++ 1.36.1 bug 900210_03
-
-// g++ allows void* type values to be assigned to variables of other
-// pointer types. According to the C++ Reference Manual, this is illegal.
-
-// Cfront 2.0 passes this test.
-
-// keywords: void pointers, pointer type conversions, implicit type conversions
-
-void* vp;
-char* cp;
-int* ip;
-enum {enum_value_1} * ep;
-struct { int member; } * sp;
-void (*fp) (void);
-
-void global_function ()
-{
- cp = vp; /* ERROR - */
- ip = vp; /* ERROR - */
- ep = vp; /* ERROR - */
- sp = vp; /* ERROR - */
- fp = vp; /* ERROR - */
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900210_05.C b/gcc/testsuite/g++.old-deja/g++.bugs/900210_05.C
deleted file mode 100644
index fc0ead9..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900210_05.C
+++ /dev/null
@@ -1,37 +0,0 @@
-// g++ 1.36.1 bug 900210_05
-
-// Section 18.3 of the 2.0 Reference Manual says "An implementation
-// providing { anachronistic features } should also provide a way for
-// the user to ensure that they do not occur in a source file."
-
-// The *only* proper way to "ensure" an absence of anachronstic features
-// is for C++ language processors to generate errors (rather than just
-// warnings) when such features are used. These errors could perhaps be
-// triggered by some set of command line options, or by the absence of
-// certain command line options. (For g++, the -pedantic and -traditional
-// options come to mind.)
-
-// The use of errors rather than warnings is important because errors
-// usually result in non-zero exit status codes for language processors
-// and these non-zero exit stati can be automatically checked during
-// normal execution of a Makefile.
-
-// cfront 2.0 provides the +p option which causes errors to be generated for
-// all cases of anachronistic usage.
-
-// g++ generates neither errors nor warnings for such usage, even when the
-// -ansi and -pedantic options are used.
-
-// Cfront 2.0 passes this test.
-
-// keywords: anachronism, enum types, integral types, implicit type conversions
-
-enum enum0 { enum_value_0 } enum0_object;
-int int0_object;
-
-void function ()
-{
- enum0_object = int0_object; /* ERROR - */
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900210_06.C b/gcc/testsuite/g++.old-deja/g++.bugs/900210_06.C
deleted file mode 100644
index d52f511..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900210_06.C
+++ /dev/null
@@ -1,25 +0,0 @@
-// g++ 1.36.1 bug 900210_06
-
-// g++ allows values of pointer-to-const types to be assigned to variables
-// of pointer-to-non-const types.
-
-// Cfront 2.0 disallows such assignments.
-
-// g++ also allows values of pointer-to-volatile types to be assigned to
-// variables of pointer-to-non-volatile types.
-
-// Cfront 2.0 *would* disallow this (if it only supported "volatile").
-
-// keywords: pointer types, implicit type conversions
-
-const char *ccp;
-volatile char *vcp;
-char *cp;
-
-void function ()
-{
- cp = ccp; /* ERROR - */
- cp = vcp; /* ERROR - */
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900210_07.C b/gcc/testsuite/g++.old-deja/g++.bugs/900210_07.C
deleted file mode 100644
index 1013058..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900210_07.C
+++ /dev/null
@@ -1,19 +0,0 @@
-// g++ 1.36.1 bug 900210_07
-
-// g++ allows values of pointer-to-signed types to be assigned to variables
-// of pointer-to-unsigned types, and vise versa.
-
-// Cfront 2.0 passes this test.
-
-// keyowrds: pointer types, implicit type conversions
-// Special Options: -ansi -pedantic-errors
-signed int *sip;
-unsigned int *uip;
-
-void function ()
-{
- sip = uip; // ERROR -
- uip = sip; // ERROR -
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900210_08.C b/gcc/testsuite/g++.old-deja/g++.bugs/900210_08.C
deleted file mode 100644
index 40704d4..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900210_08.C
+++ /dev/null
@@ -1,18 +0,0 @@
-// g++ 1.36.1 bug 900210_08
-
-// g++ allows pointer-to-const values to be implicitly converted to
-// void* values. This causes a silent loss of the const qualifier.
-
-// Cfront 2.0 passes this test.
-
-// keywords: pointer types, implicit type conversions
-
-const char *ccp;
-void *vp;
-
-void function ()
-{
- vp = ccp; /* ERROR - */
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900210_09.C b/gcc/testsuite/g++.old-deja/g++.bugs/900210_09.C
deleted file mode 100644
index ce78540..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900210_09.C
+++ /dev/null
@@ -1,32 +0,0 @@
-// g++ 1.36.1 bug 900210_09
-
-// g++ allows pointer to members (both data members and function members)
-// to be implicitly converted to void*.
-
-// Section 4.8 of the Cfront 2.0 Reference Manual disallows such implicit
-// conversions.
-
-// Cfront 2.0 passes this test.
-
-// keywords: member pointers, void pointers, implicit type conversions
-
-class class0 {
-public:
- int class0_data_member_0;
- void class0_function_member_0 ();
-};
-
-int class0::*class0_data_member_pointer;
-int (class0::*class0_function_member_pointer) ();
-
-void *vp;
-
-void global_function_0 ()
-{
- vp = class0_data_member_pointer; // ERROR -
- vp = class0_function_member_pointer; // ERROR -
-}
-
-int main () { return 0; }
-
-
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900210_10.C b/gcc/testsuite/g++.old-deja/g++.bugs/900210_10.C
deleted file mode 100644
index 26c1721..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900210_10.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// g++ 1.36.1 bug 900210_10
-
-// g++ allows operator[] to be declared as a static member function.
-// This is illegal.
-
-// Cfront 2.0 passes this test.
-
-// keywords: operator[], static function members
-
-struct struct0 {
- static int operator[] (); /* ERROR - */
-};
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900211_01.C b/gcc/testsuite/g++.old-deja/g++.bugs/900211_01.C
deleted file mode 100644
index 75c99b6..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900211_01.C
+++ /dev/null
@@ -1,16 +0,0 @@
-// g++ 1.36.1 bug 900211_01
-
-// g++ issues only warnings for calls to previously undeclared functions,
-// however such calls are actually errors.
-
-// Cfront 2.0 passes this test.
-
-// keywords: undeclared, functions
-// Build don't link:
-
-void global_function_0 ()
-{
- global_function_1 (); /* ERROR - */
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900211_02.C b/gcc/testsuite/g++.old-deja/g++.bugs/900211_02.C
deleted file mode 100644
index d23a9df..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900211_02.C
+++ /dev/null
@@ -1,24 +0,0 @@
-// g++ 1.36.1 bug 900211_02
-
-// g++ allows you to explicitly specify the return type for a type conversion
-// operator.
-
-// The Cfront 2.0 Reference Manual (12.3.2) says that this in not allowed.
-
-// Cfront 2.0 passes this test.
-
-// keywords: type conversion operators, return type
-
-struct struct0 { int member_0; };
-
-struct0 struct0_object_0;
-
-struct struct1 {
- struct0 operator struct0 (); /* ERROR - */
-};
-
-struct0 struct1::operator struct0 () { // ERROR -
- return struct0_object_0;
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900211_03.C b/gcc/testsuite/g++.old-deja/g++.bugs/900211_03.C
deleted file mode 100644
index b805f78..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900211_03.C
+++ /dev/null
@@ -1,14 +0,0 @@
-// g++ 1.36.1 bug 900211_03
-
-// The following erroneous code causes g++ to segfault.
-
-// Cfront 2.0 passes this test.
-
-// keywords: segfault, operator new, arrays, undeclared, array bound
-
-void function ()
-{
- char* new_base = new char[x]; // ERROR -
-}
-
-int main () { return 0; }
diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900211_04.C b/gcc/testsuite/g++.old-deja/g++.bugs/900211_04.C
deleted file mode 100644
index 81bea9e..0000000
--- a/gcc/testsuite/g++.old-deja/g++.bugs/900211_04.C
+++ /dev/null
@@ -1,27 +0,0 @@
-// g++ 1.36.1 bug 900211_04
-
-// g++ fails to flag as errors attempts to compare pointer values against
-// (non-zero) integer values;
-
-// Since implicit conversions of pointer to integers (or vise versa) are
-// illegal, these comparisons are also illegal.
-
-// Cfront 2.0 passes this test.
-
-// keywords: comparison operators, pointer types, integral types
-
-int result;
-int i;
-char *p;
-
-void function ()
-{
- result = i == p; /* ERROR - caught by g++ */
- result = i !=