]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
14320-1.cc: Check for "long long" and remove XFAIL.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Fri, 15 Feb 2008 00:22:20 +0000 (00:22 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Fri, 15 Feb 2008 00:22:20 +0000 (00:22 +0000)
* testsuite/27_io/fpos/14320-1.cc: Check for "long long" and
remove XFAIL.

From-SVN: r132330

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/fpos/14320-1.cc

index d1c008a407c2edac68114e6304e5db0b0548a516..064de49be6bcba2c864ca0da9d95f218ca6fc904 100644 (file)
@@ -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.
+
 2007-04-23  Matthias Klose  <doko@debian.org>
 
        Backport from mainline:
index 85e1d432eb3d18c33231a82932f2e47f608d6d50..1e492d06d0337cf842921e345e4a08dd6e27692f 100644 (file)
@@ -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))