aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2008-02-14 21:41:20 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2008-02-14 21:41:20 +0000
commit0cc24ff082435b48eca7ec991e18eb437d7094b7 (patch)
tree29790036be1bbe0bf09082d50708d7e3439c6214 /libstdc++-v3
parent928bc34f5f3653e17357351b394894827aeef424 (diff)
downloadgcc-0cc24ff082435b48eca7ec991e18eb437d7094b7.zip
gcc-0cc24ff082435b48eca7ec991e18eb437d7094b7.tar.gz
gcc-0cc24ff082435b48eca7ec991e18eb437d7094b7.tar.bz2
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: r132321
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/testsuite/27_io/fpos/14320-1.cc7
2 files changed, 11 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index b9a11b2..a876a12 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * testsuite/27_io/fpos/14320-1.cc: Check for "long long" and
+ remove XFAIL.
+
2008-02-14 Benjamin Kosnik <bkoz@redhat.com>
* config/os/generic/error_constants.h (posix_errno): Guard
diff --git a/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc b/libstdc++-v3/testsuite/27_io/fpos/14320-1.cc
index 85e1d43..1e492d0 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 <typeinfo>
#include <limits>
@@ -36,6 +36,11 @@ void test01()
typedef istreambuf_iterator<char>::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))