Commit 05298dea by Benjamin Kosnik

stl-inst.cc: Change __sink_unused_warning to unsigned int for alpha.


2000-07-21  Benjamin Kosnik  <bkoz@purist.soma.redhat.com>

	* src/stl-inst.cc: Change __sink_unused_warning to unsigned int
	for alpha.

	* testsuite/26_numerics/complex_inserters_extractors.cc (testall):
	Change return type to void.
	* testsuite/25_algorithms/lower_bound.cc: Add return values.
	* bits/locale_facets.h: Add return values for the generic cases.

From-SVN: r35183
parent 4142b247
......@@ -284,72 +284,84 @@ namespace std
do_is(mask, char_type) const
{
// XXX Need definitions for these abstract mf's.
return true;
}
virtual const char_type*
do_is(const char_type*, const char_type*, mask*) const
do_is(const char_type* __lo, const char_type*, mask*) const
{
// XXX Need definitions for these abstract mf's.
return __lo;
}
virtual const char_type*
do_scan_is(mask, const char_type*, const char_type*) const
do_scan_is(mask, const char_type* __lo, const char_type*) const
{
// XXX Need definitions for these abstract mf's.
return __lo;
}
virtual const char_type*
do_scan_not(mask, const char_type*, const char_type*) const
do_scan_not(mask, const char_type* __lo, const char_type*) const
{
// XXX Need definitions for these abstract mf's.
return __lo;
}
virtual char_type
do_toupper(char_type) const
do_toupper(char_type __c) const
{
// XXX Need definitions for these abstract mf's.
return __c;
}
virtual const char_type*
do_toupper(char_type*, const char_type*) const
do_toupper(char_type* __lo, const char_type*) const
{
// XXX Need definitions for these abstract mf's.
return __lo;
}
virtual char_type
do_tolower(char_type) const
do_tolower(char_type __c) const
{
// XXX Need definitions for these abstract mf's.
return __c;
}
virtual const char_type*
do_tolower(char_type*, const char_type*) const
do_tolower(char_type* __lo, const char_type*) const
{
// XXX Need definitions for these abstract mf's.
return __lo;
}
virtual char_type
do_widen(char) const
do_widen(char __c) const
{
// XXX Need definitions for these abstract mf's.
return __c;
}
virtual const char*
do_widen(const char*, const char*, char_type*) const
do_widen(const char* __lo, const char*, char_type*) const
{
// XXX Need definitions for these abstract mf's.
return __lo;
}
virtual char
do_narrow(char_type, char) const
do_narrow(char_type, char __c) const
{
// XXX Need definitions for these abstract mf's.
return __c;
}
virtual const char_type*
do_narrow(const char_type*, const char_type*, char, char*) const
do_narrow(const char_type* __lo, const char_type*, char, char*) const
{
// XXX Need definitions for these abstract mf's.
return __lo;
}
};
......
......@@ -51,6 +51,6 @@ namespace std {
template
void
__sink_unused_warning<size_t>(size_t);
__sink_unused_warning<unsigned int>(unsigned int);
} //std
......@@ -24,8 +24,8 @@
// http://sourceware.cygnus.com/ml/libstdc++/2000-06/msg00316.html
struct foo { };
bool operator== (const foo&, const foo&) { };
bool operator< (const foo&, const foo&) { };
bool operator== (const foo&, const foo&) { return true; };
bool operator< (const foo&, const foo&) { return true; };
void bar(foo* a, foo* b, foo& x)
{
......
......@@ -66,7 +66,7 @@ void test_fail(std::string str)
}
template<typename R>
int testall()
void testall()
{
test_good<R>("(-1.1,3.7)#", -1.1, 3.7);
test_good<R>("( .7e6 , \n-3.1)#", .7e6, -3.1);
......
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