diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb121.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb121.C index 1f003f3598e5..86be02a0af00 100644 --- a/gcc/testsuite/g++.old-deja/g++.robertl/eb121.C +++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb121.C @@ -1,14 +1,14 @@ -// Compiles. Shouldn't. +//Build don't link: class A { private: int i1_; public: - void f(int const i1 = 1); + void f(int const i1 = 1); // ERROR - }; void -A::f(int const i1 = 1) // !!! SHOULD TRIGGER AN ERROR !!! -{ +A::f(int const i1 = 1) +{ // ERROR - duplicate default argument i1_ = i1; } diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb42.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb42.C index 6d15ec7e5ea8..8850f9fa6398 100644 --- a/gcc/testsuite/g++.old-deja/g++.robertl/eb42.C +++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb42.C @@ -1,3 +1,4 @@ +//Build don't link: #include #include diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C index deba6cbe14b5..8ae65023b12e 100644 --- a/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C +++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb43.C @@ -8,41 +8,26 @@ Expr(){}; Expr(const T&){}; }; -#ifdef TEMPLATE template inline bool compare(const Expr a, const Expr b){ return true; }; -#else -inline bool compare(const Expr a, const Expr b){ return true; }; -#endif void main() { vector a(3); -#if TEMPLATE == 1 sort( a.begin(), a.end(), static_cast,const Expr)>(compare) ); -#elif TEMPLATE == 2 sort( a.begin(), a.end(), compare ); -#elif TEMPLATE == 3 sort::iterator, pointer_to_binary_function, const Expr, bool> > ( a.begin(), a.end(), compare ); -#elif TEMPLATE == 4 sort( a.begin(), a.end(), ptr_fun, const Expr, bool> (compare) ); -#elif TEMPLATE == 5 sort( a.begin(), a.end(), ptr_fun(compare) ); -#elif TEMPLATE == 6 sort( a.begin(), a.end(), pointer_to_binary_function, const Expr, bool>(compare) ); -#elif TEMPLATE == 7 sort( a.begin(), a.end(), pointer_to_binary_function, const Expr, bool>(compare) ); -#elif TEMPLATE == 8 sort( a.begin(), a.end(), pointer_to_binary_function, const Expr, bool>(compare<>) ); -#else - sort( a.begin(), a.end(), compare ); -#endif }