+2018-03-17 Jonathan Wakely <jwakely@redhat.com>
+
+ * testsuite/20_util/function_objects/comparisons_pointer.cc: Adjust
+ to compile as C++98.
+
2018-03-14 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/78420
void
test01()
{
- auto p = a + 8;
+ int* p = a + 8;
std::greater<int*> gt;
std::stringstream ss;
ss.str("");
ss.clear();
sum = 0;
- auto p2 = a + 8;
+ int* p2 = a + 8;
std::greater<> gt2;
ss << gt2(p2, b) << ' ' << gt2(b, p2) << ' ' << (!gt2(p2, b) && !gt2(b, p2));
while (ss >> n)
void
test02()
{
- auto p = a + 8;
+ int* p = a + 8;
std::less<int*> lt;
std::stringstream ss;
ss.str("");
ss.clear();
sum = 0;
- auto p2 = a + 8;
+ int* p2 = a + 8;
std::less<> lt2;
ss << lt2(p2, b) << ' ' << lt2(b, p2) << ' ' << (!lt2(p2, b) && !lt2(b, p2));
while (ss >> n)
void
test03()
{
- auto p = a + 8;
+ int* p = a + 8;
std::greater_equal<int*> ge;
std::stringstream ss;
ss.str("");
ss.clear();
sum = 0;
- auto p2 = a + 8;
+ int* p2 = a + 8;
std::greater_equal<> ge2;
ss << !ge2(p2, b) << ' ' << !ge2(b, p2) << ' ' << (ge2(p2, b) && ge2(b, p2));
while (ss >> n)
void
test04()
{
- auto p = a + 8;
+ int* p = a + 8;
std::less_equal<int*> le;
std::stringstream ss;
ss.str("");
ss.clear();
sum = 0;
- auto p2 = a + 8;
+ int* p2 = a + 8;
std::less_equal<> le2;
ss << !le2(p2, b) << ' ' << !le2(b, p2) << ' ' << (le2(p2, b) && le2(b, p2));
while (ss >> n)
test05()
{
std::less<const X*> lt;
- auto p = y + 4;
+ X* p = y + 4;
std::stringstream ss;
ss << lt(x, p) << ' ' << lt(p, x) << ' ' << (!lt(p, x) && !lt(x, p));
int sum = 0;
ss.str("");
ss.clear();
sum = 0;
- auto p2 = y + 4;
+ X* p2 = y + 4;
std::less<> lt2;
ss << lt2(x, p2) << ' ' << lt2(p2, x) << ' ' << (!lt2(x, p2) && !lt2(p2, x));
while (ss >> n)