P1152R4: Fix deprecation warnings in libc++ testsuite and in uses of is_invocable that would internally conjure up a deprecated function type.
Summary: The implementation of P1152R4 in Clang has resulted in some deprecation warnings appearing in the libc++ and libc++abi test suite. Fix or suppress these warnings.
Reviewers: mclow.lists, EricWF
Subscribers: christof, ldionne, libcxx-commits
Tags: #libc
Differential Revision: https://reviews.llvm.org/D68879
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@375307 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/unwind_06.pass.cpp b/test/unwind_06.pass.cpp
index e4c04e8..7d67f52 100644
--- a/test/unwind_06.pass.cpp
+++ b/test/unwind_06.pass.cpp
@@ -24,7 +24,7 @@
double try1(bool v) {
double a = get(0);
double b = get(1);
- for (counter = 100; counter; --counter)
+ for (counter = 100; counter; counter = counter - 1)
a += get(1) + b;
if (v) throw 10;
return get(0)+a+b;
@@ -34,7 +34,7 @@
double a = get(0);
double b = get(1);
double c = get(2);
- for (counter = 100; counter; --counter)
+ for (counter = 100; counter; counter = counter - 1)
a += get(1) + b + c;
if (v) throw 10;
return get(0)+a+b+c;
@@ -45,7 +45,7 @@
double b = get(1);
double c = get(2);
double d = get(3);
- for (counter = 100; counter; --counter)
+ for (counter = 100; counter; counter = counter - 1)
a += get(1) + b + c + d;
if (v) throw 10;
return get(0)+a+b+c+d;
@@ -57,7 +57,7 @@
double c = get(0);
double d = get(0);
double e = get(0);
- for (counter = 100; counter; --counter)
+ for (counter = 100; counter; counter = counter - 1)
a += get(1) + b+c+d+e;
if (v) throw 10;
return get(0)+a+b+c+d+e;
@@ -70,7 +70,7 @@
double d = get(0);
double e = get(0);
double f = get(0);
- for (counter = 100; counter; --counter)
+ for (counter = 100; counter; counter = counter - 1)
a += get(1) + b+c+d+e+f;
if (v) throw 10;
return get(0)+a+b+c+d+e+f;
@@ -84,7 +84,7 @@
double e = get(0);
double f = get(0);
double g = get(0);
- for (counter = 100; counter; --counter)
+ for (counter = 100; counter; counter = counter - 1)
a += get(1) + b+c+d+e+f+g;
if (v) throw 10;
return get(0)+a+b+c+d+e+f+g;
@@ -99,7 +99,7 @@
double f = get(0);
double g = get(0);
double h = get(0);
- for (counter = 100; counter; --counter)
+ for (counter = 100; counter; counter = counter - 1)
a += get(1) + b+c+d+e+f+g+h;
if (v) throw 10;
return get(0)+a+b+c+d+e+f+g+h;
@@ -115,7 +115,7 @@
double g = get(0);
double h = get(0);
double i = get(0);
- for (counter = 100; counter; --counter)
+ for (counter = 100; counter; counter = counter - 1)
a += get(1) + b+c+d+e+f+g+h+i;
if (v) throw 10;
return get(0)+a+b+c+d+e+f+g+h+i;