diff options
author | Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> | 2000-09-26 00:06:30 +0200 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2000-09-25 22:06:30 +0000 |
commit | dcbd43e030914368ca0b5c089dc32cf8a208113d (patch) | |
tree | 8679db5e1903a86d4cd1473af5dfd99be8941422 | |
parent | 66db6b45140abf81e502b8ae264ed714467a0f71 (diff) | |
download | gcc-dcbd43e030914368ca0b5c089dc32cf8a208113d.zip gcc-dcbd43e030914368ca0b5c089dc32cf8a208113d.tar.gz gcc-dcbd43e030914368ca0b5c089dc32cf8a208113d.tar.bz2 |
crash20.C: Make ready for libstdc++-v3.
2000-09-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
* g++.old-deja/g++.other/crash20.C: Make ready for libstdc++-v3.
* g++.old-deja/g++.pt/ttp62.C: Same.
* g++.old-deja/g++.other/inline14.C: Same.
From-SVN: r36633
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/crash20.C | 2 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/inline14.C | 8 | ||||
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/ttp62.C | 4 |
4 files changed, 13 insertions, 7 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index db2f084..e3fb537 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2000-09-25 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> + + * g++.old-deja/g++.other/crash20.C: Make ready for libstdc++-v3. + * g++.old-deja/g++.pt/ttp62.C: Same. + * g++.old-deja/g++.other/inline14.C: Same. + 2000-09-24 Richard Henderson <rth@cygnus.com> * gcc.c-torture/execute/20000914-1.c: Declare malloc. diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash20.C b/gcc/testsuite/g++.old-deja/g++.other/crash20.C index 08e42fd..bf4370a 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/crash20.C +++ b/gcc/testsuite/g++.old-deja/g++.other/crash20.C @@ -32,7 +32,7 @@ int main () { GcspFlags::btmFlag<GcspFlags::OffYes> f; - const type_info& ti = typeid (f); + const std::type_info& ti = typeid (f); return 0; } diff --git a/gcc/testsuite/g++.old-deja/g++.other/inline14.C b/gcc/testsuite/g++.old-deja/g++.other/inline14.C index 7a50fab..5a7ea4b 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/inline14.C +++ b/gcc/testsuite/g++.old-deja/g++.other/inline14.C @@ -7,7 +7,7 @@ struct IDENT { enum TYPE { Variable, Constant } type; - ostream& printTo(ostream& out) const + std::ostream& printTo(std::ostream& out) const { switch (type) { @@ -34,7 +34,7 @@ struct TC }; template <class T> -inline ostream& operator<< (ostream& out, const TC<T> &c) +inline std::ostream& operator<< (std::ostream& out, const TC<T> &c) { c.getIdent().printTo(out); return out; @@ -42,8 +42,8 @@ inline ostream& operator<< (ostream& out, const TC<T> &c) void foo(const TC<IDENT> &c) { - cerr << c + std::cerr << c << ": " // This line is crucial! << c - << endl; + << std::endl; } diff --git a/gcc/testsuite/g++.old-deja/g++.pt/ttp62.C b/gcc/testsuite/g++.old-deja/g++.pt/ttp62.C index 77013c4..34e9c9d 100644 --- a/gcc/testsuite/g++.old-deja/g++.pt/ttp62.C +++ b/gcc/testsuite/g++.old-deja/g++.pt/ttp62.C @@ -21,7 +21,7 @@ bool is_C (const T&) { }; int main() { - cout << "should be true: " << is_C(C<int>()) << endl; - cout << "should be false: " << is_C(D<int>()) << endl; + std::cout << "should be true: " << is_C(C<int>()) << std::endl; + std::cout << "should be false: " << is_C(D<int>()) << std::endl; return 0; } |