Commit dcbd43e0 by Theodore Papadopoulo Committed by Benjamin Kosnik

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
parent 66db6b45
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.
......
......@@ -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;
}
......@@ -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;
}
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment