tests_flags.in (LTCXX): Change CXX_FLAG to CXXFLAGS.
2000-11-27 Benjamin Kosnik <bkoz@redhat.com> * tests_flags.in (LTCXX): Change CXX_FLAG to CXXFLAGS. * testsuite/22_locale/ctor_copy_dtor.cc: Adjust formatting. * testsuite/27_io/istream_extractor_arith.cc (test11): New testcase, based on libstdc++/90. From-SVN: r37813
This commit is contained in:
parent
dd80b90606
commit
8ce10512a9
4 changed files with 40 additions and 8 deletions
|
@ -1,3 +1,11 @@
|
|||
2000-11-27 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* tests_flags.in (LTCXX): Change CXX_FLAG to CXXFLAGS.
|
||||
|
||||
* testsuite/22_locale/ctor_copy_dtor.cc: Adjust formatting.
|
||||
* testsuite/27_io/istream_extractor_arith.cc (test11): New
|
||||
testcase, based on libstdc++/90.
|
||||
|
||||
2000-11-27 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
|
||||
|
||||
* config/cpu/arm/bits/atomicity.h (__exchange_and_add): Add
|
||||
|
|
|
@ -157,7 +157,7 @@ ST_FLAGS="-static"
|
|||
# LIBS == any extra needed -l switches, etc (may need more libs, lose lose)
|
||||
case ${query} in
|
||||
--built-library)
|
||||
LTCXX="${LIBTOOL} --tag=CXX --mode=link ${CXX} ${CXX_FLAG} ${INC_PATH}
|
||||
LTCXX="${LIBTOOL} --tag=CXX --mode=link ${CXX} ${CXXFLAGS} ${INC_PATH}
|
||||
${LIB_PATH}/../libsupc++/libsupc++.la ${LIB_PATH}/libstdc++.la
|
||||
-no-install"
|
||||
LTEXE="${LIBTOOL} --mode=execute"
|
||||
|
@ -166,7 +166,7 @@ case ${query} in
|
|||
--installed-library)
|
||||
# For the installed version, we really only need to use libtool and
|
||||
# the .la file to get correct rpaths.
|
||||
LTCXX="${LIBTOOL} --tag=CXX --mode=link ${CXX} ${CXX_FLAG} ${INC_PATH}
|
||||
LTCXX="${LIBTOOL} --tag=CXX --mode=link ${CXX} ${CXXFLAGS} ${INC_PATH}
|
||||
-L${LIB_PATH} ${LIB_PATH}/libstdc++.la -no-install
|
||||
-rpath ${LIB_PATH}"
|
||||
LTEXE="${LIBTOOL} --mode=execute"
|
||||
|
|
|
@ -26,11 +26,10 @@
|
|||
#include <debug_assert.h>
|
||||
|
||||
#if _GLIBCPP_USE_WCHAR_T
|
||||
|
||||
typedef std::codecvt<char, char, std::mbstate_t> c_codecvt;
|
||||
typedef std::codecvt_byname<char, char, std::mbstate_t> c_codecvt_byname;
|
||||
typedef std::codecvt<wchar_t, char, std::mbstate_t> w_codecvt;
|
||||
typedef std::codecvt_byname<wchar_t, char, std::mbstate_t> w_codecvt_byname;
|
||||
typedef std::codecvt<char, char, std::mbstate_t> c_codecvt;
|
||||
typedef std::codecvt_byname<char, char, std::mbstate_t> c_codecvt_byname;
|
||||
typedef std::codecvt<wchar_t, char, std::mbstate_t> w_codecvt;
|
||||
typedef std::codecvt_byname<wchar_t, char, std::mbstate_t> w_codecvt_byname;
|
||||
|
||||
class gnu_codecvt: public c_codecvt { };
|
||||
|
||||
|
@ -168,7 +167,7 @@ int main ()
|
|||
{
|
||||
#if _GLIBCPP_USE_WCHAR_T
|
||||
test01();
|
||||
#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -490,6 +490,29 @@ bool test10() {
|
|||
return test;
|
||||
}
|
||||
|
||||
// In the presence of no fmtflags, the input operator should behave
|
||||
// like strtol(x, y, 0)
|
||||
// libstdc++/90
|
||||
bool test11()
|
||||
{
|
||||
bool test = true;
|
||||
const char* cstrlit = "0x2a";
|
||||
|
||||
// sanity check via 'C' library call
|
||||
char* err;
|
||||
long l = strtol(cstrlit, &err, 0);
|
||||
|
||||
std::istringstream iss(cstrlit);
|
||||
iss.setf(std::ios::fmtflags(0), std::ios::basefield);
|
||||
int i;
|
||||
iss >> i;
|
||||
|
||||
VERIFY (!iss.fail());
|
||||
VERIFY (l == i);
|
||||
|
||||
return test;
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
test01();
|
||||
|
@ -501,6 +524,8 @@ int main()
|
|||
test08();
|
||||
test09();
|
||||
test10();
|
||||
|
||||
test11();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue