From: Kaveh R. Ghazi Date: Fri, 15 Feb 2008 00:12:02 +0000 (+0000) Subject: 14320-1.cc: Check for "long long" and remove XFAIL. X-Git-Tag: prereleases/gcc-4.2.4-rc1~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=697bb8dbefafd50185636bab53399e0d6ff4d360;p=thirdparty%2Fgcc.git 14320-1.cc: Check for "long long" and remove XFAIL. * testsuite/27_io/fpos/14320-1.cc: Check for "long long" and remove XFAIL. From-SVN: r132325 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 9450a800d93a..90066f5ae3be 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2008-02-14 Kaveh R. Ghazi + + * testsuite/27_io/fpos/14320-1.cc: Check for "long long" and + remove XFAIL. + 2008-02-01 Release Manager * GCC 4.2.3 released. diff --git a/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc b/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc index 85e1d432eb3d..1e492d06d033 100644 --- a/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc +++ b/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc @@ -20,7 +20,7 @@ // 27.4.3 fpos -// { dg-do run { xfail *-*-* } } +// { dg-do run } #include #include @@ -36,6 +36,11 @@ void test01() typedef istreambuf_iterator::difference_type Distance; bool found = false; + // The C++ standard didn't originally have "long long", however that + // type will be in the C++0x standard and testing for it allows + // ilp32 targets to pass this test when `Distance' is 64 bits. + if (typeid(Distance) == typeid(long long int)) + found = true; if (typeid(Distance) == typeid(long int)) found = true; if (typeid(Distance) == typeid(int))