mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 03:46:53 -05:00
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
This commit is contained in:
committed by
Kaveh Ghazi
parent
0227d1d371
commit
697bb8dbef
@@ -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-01 Release Manager
|
||||
|
||||
* GCC 4.2.3 released.
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user