[libcxx] [test] Fix Clang -Wunused-local-typedef warnings.
Fix D34536. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@308534 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -34,7 +34,6 @@ test()
|
|||||||
|
|
||||||
void test_edges()
|
void test_edges()
|
||||||
{
|
{
|
||||||
typedef std::complex<double> C;
|
|
||||||
const double pi = std::atan2(+0., -0.);
|
const double pi = std::atan2(+0., -0.);
|
||||||
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
||||||
for (unsigned i = 0; i < N; ++i)
|
for (unsigned i = 0; i < N; ++i)
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ test()
|
|||||||
|
|
||||||
void test_edges()
|
void test_edges()
|
||||||
{
|
{
|
||||||
typedef std::complex<double> C;
|
|
||||||
const double pi = std::atan2(+0., -0.);
|
const double pi = std::atan2(+0., -0.);
|
||||||
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
||||||
for (unsigned i = 0; i < N; ++i)
|
for (unsigned i = 0; i < N; ++i)
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ test()
|
|||||||
|
|
||||||
void test_edges()
|
void test_edges()
|
||||||
{
|
{
|
||||||
typedef std::complex<double> C;
|
|
||||||
const double pi = std::atan2(+0., -0.);
|
const double pi = std::atan2(+0., -0.);
|
||||||
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
||||||
for (unsigned i = 0; i < N; ++i)
|
for (unsigned i = 0; i < N; ++i)
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ test()
|
|||||||
|
|
||||||
void test_edges()
|
void test_edges()
|
||||||
{
|
{
|
||||||
typedef std::complex<double> C;
|
|
||||||
const double pi = std::atan2(+0., -0.);
|
const double pi = std::atan2(+0., -0.);
|
||||||
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
||||||
for (unsigned i = 0; i < N; ++i)
|
for (unsigned i = 0; i < N; ++i)
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ test()
|
|||||||
|
|
||||||
void test_edges()
|
void test_edges()
|
||||||
{
|
{
|
||||||
typedef std::complex<double> C;
|
|
||||||
const double pi = std::atan2(+0., -0.);
|
const double pi = std::atan2(+0., -0.);
|
||||||
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
||||||
for (unsigned i = 0; i < N; ++i)
|
for (unsigned i = 0; i < N; ++i)
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ test()
|
|||||||
|
|
||||||
void test_edges()
|
void test_edges()
|
||||||
{
|
{
|
||||||
typedef std::complex<double> C;
|
|
||||||
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
||||||
for (unsigned i = 0; i < N; ++i)
|
for (unsigned i = 0; i < N; ++i)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ test()
|
|||||||
|
|
||||||
void test_edges()
|
void test_edges()
|
||||||
{
|
{
|
||||||
typedef std::complex<double> C;
|
|
||||||
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
||||||
for (unsigned i = 0; i < N; ++i)
|
for (unsigned i = 0; i < N; ++i)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ test()
|
|||||||
|
|
||||||
void test_edges()
|
void test_edges()
|
||||||
{
|
{
|
||||||
typedef std::complex<double> C;
|
|
||||||
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
||||||
for (unsigned i = 0; i < N; ++i)
|
for (unsigned i = 0; i < N; ++i)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ test()
|
|||||||
|
|
||||||
void test_edges()
|
void test_edges()
|
||||||
{
|
{
|
||||||
typedef std::complex<double> C;
|
|
||||||
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
||||||
for (unsigned i = 0; i < N; ++i)
|
for (unsigned i = 0; i < N; ++i)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ test()
|
|||||||
|
|
||||||
void test_edges()
|
void test_edges()
|
||||||
{
|
{
|
||||||
typedef std::complex<double> C;
|
|
||||||
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
|
||||||
for (unsigned i = 0; i < N; ++i)
|
for (unsigned i = 0; i < N; ++i)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ void
|
|||||||
test1()
|
test1()
|
||||||
{
|
{
|
||||||
typedef std::lognormal_distribution<> D;
|
typedef std::lognormal_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937 G;
|
typedef std::mt19937 G;
|
||||||
G g;
|
G g;
|
||||||
D d(-1./8192, 0.015625);
|
D d(-1./8192, 0.015625);
|
||||||
@@ -78,7 +77,6 @@ void
|
|||||||
test2()
|
test2()
|
||||||
{
|
{
|
||||||
typedef std::lognormal_distribution<> D;
|
typedef std::lognormal_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937 G;
|
typedef std::mt19937 G;
|
||||||
G g;
|
G g;
|
||||||
D d(-1./32, 0.25);
|
D d(-1./32, 0.25);
|
||||||
@@ -123,7 +121,6 @@ void
|
|||||||
test3()
|
test3()
|
||||||
{
|
{
|
||||||
typedef std::lognormal_distribution<> D;
|
typedef std::lognormal_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937 G;
|
typedef std::mt19937 G;
|
||||||
G g;
|
G g;
|
||||||
D d(-1./8, 0.5);
|
D d(-1./8, 0.5);
|
||||||
@@ -168,7 +165,6 @@ void
|
|||||||
test4()
|
test4()
|
||||||
{
|
{
|
||||||
typedef std::lognormal_distribution<> D;
|
typedef std::lognormal_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937 G;
|
typedef std::mt19937 G;
|
||||||
G g;
|
G g;
|
||||||
D d;
|
D d;
|
||||||
@@ -213,7 +209,6 @@ void
|
|||||||
test5()
|
test5()
|
||||||
{
|
{
|
||||||
typedef std::lognormal_distribution<> D;
|
typedef std::lognormal_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937 G;
|
typedef std::mt19937 G;
|
||||||
G g;
|
G g;
|
||||||
D d(-0.78125, 1.25);
|
D d(-0.78125, 1.25);
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ int main()
|
|||||||
{
|
{
|
||||||
{
|
{
|
||||||
typedef std::student_t_distribution<> D;
|
typedef std::student_t_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::minstd_rand G;
|
typedef std::minstd_rand G;
|
||||||
G g;
|
G g;
|
||||||
D d(5.5);
|
D d(5.5);
|
||||||
@@ -69,7 +68,6 @@ int main()
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
typedef std::student_t_distribution<> D;
|
typedef std::student_t_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::minstd_rand G;
|
typedef std::minstd_rand G;
|
||||||
G g;
|
G g;
|
||||||
D d(10);
|
D d(10);
|
||||||
@@ -105,7 +103,6 @@ int main()
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
typedef std::student_t_distribution<> D;
|
typedef std::student_t_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::minstd_rand G;
|
typedef std::minstd_rand G;
|
||||||
G g;
|
G g;
|
||||||
D d(100);
|
D d(100);
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ void
|
|||||||
test1()
|
test1()
|
||||||
{
|
{
|
||||||
typedef std::extreme_value_distribution<> D;
|
typedef std::extreme_value_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937 G;
|
typedef std::mt19937 G;
|
||||||
G g;
|
G g;
|
||||||
D d(0.5, 2);
|
D d(0.5, 2);
|
||||||
@@ -75,7 +74,6 @@ void
|
|||||||
test2()
|
test2()
|
||||||
{
|
{
|
||||||
typedef std::extreme_value_distribution<> D;
|
typedef std::extreme_value_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937 G;
|
typedef std::mt19937 G;
|
||||||
G g;
|
G g;
|
||||||
D d(1, 2);
|
D d(1, 2);
|
||||||
@@ -117,7 +115,6 @@ void
|
|||||||
test3()
|
test3()
|
||||||
{
|
{
|
||||||
typedef std::extreme_value_distribution<> D;
|
typedef std::extreme_value_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937 G;
|
typedef std::mt19937 G;
|
||||||
G g;
|
G g;
|
||||||
D d(1.5, 3);
|
D d(1.5, 3);
|
||||||
@@ -159,7 +156,6 @@ void
|
|||||||
test4()
|
test4()
|
||||||
{
|
{
|
||||||
typedef std::extreme_value_distribution<> D;
|
typedef std::extreme_value_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937 G;
|
typedef std::mt19937 G;
|
||||||
G g;
|
G g;
|
||||||
D d(3, 4);
|
D d(3, 4);
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ int main()
|
|||||||
{
|
{
|
||||||
{
|
{
|
||||||
typedef std::gamma_distribution<> D;
|
typedef std::gamma_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937 G;
|
typedef std::mt19937 G;
|
||||||
G g;
|
G g;
|
||||||
D d(0.5, 2);
|
D d(0.5, 2);
|
||||||
@@ -73,7 +72,6 @@ int main()
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
typedef std::gamma_distribution<> D;
|
typedef std::gamma_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937 G;
|
typedef std::mt19937 G;
|
||||||
G g;
|
G g;
|
||||||
D d(1, .5);
|
D d(1, .5);
|
||||||
@@ -113,7 +111,6 @@ int main()
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
typedef std::gamma_distribution<> D;
|
typedef std::gamma_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937 G;
|
typedef std::mt19937 G;
|
||||||
G g;
|
G g;
|
||||||
D d(2, 3);
|
D d(2, 3);
|
||||||
|
|||||||
@@ -44,7 +44,6 @@ void
|
|||||||
test1()
|
test1()
|
||||||
{
|
{
|
||||||
typedef std::piecewise_linear_distribution<> D;
|
typedef std::piecewise_linear_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937_64 G;
|
typedef std::mt19937_64 G;
|
||||||
G g;
|
G g;
|
||||||
double b[] = {10, 14, 16, 17};
|
double b[] = {10, 14, 16, 17};
|
||||||
@@ -97,7 +96,6 @@ void
|
|||||||
test2()
|
test2()
|
||||||
{
|
{
|
||||||
typedef std::piecewise_linear_distribution<> D;
|
typedef std::piecewise_linear_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937_64 G;
|
typedef std::mt19937_64 G;
|
||||||
G g;
|
G g;
|
||||||
double b[] = {10, 14, 16, 17};
|
double b[] = {10, 14, 16, 17};
|
||||||
@@ -150,7 +148,6 @@ void
|
|||||||
test3()
|
test3()
|
||||||
{
|
{
|
||||||
typedef std::piecewise_linear_distribution<> D;
|
typedef std::piecewise_linear_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937_64 G;
|
typedef std::mt19937_64 G;
|
||||||
G g;
|
G g;
|
||||||
double b[] = {10, 14, 16, 17};
|
double b[] = {10, 14, 16, 17};
|
||||||
@@ -203,7 +200,6 @@ void
|
|||||||
test4()
|
test4()
|
||||||
{
|
{
|
||||||
typedef std::piecewise_linear_distribution<> D;
|
typedef std::piecewise_linear_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937_64 G;
|
typedef std::mt19937_64 G;
|
||||||
G g;
|
G g;
|
||||||
double b[] = {10, 14, 16};
|
double b[] = {10, 14, 16};
|
||||||
@@ -257,7 +253,6 @@ void
|
|||||||
test5()
|
test5()
|
||||||
{
|
{
|
||||||
typedef std::piecewise_linear_distribution<> D;
|
typedef std::piecewise_linear_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937_64 G;
|
typedef std::mt19937_64 G;
|
||||||
G g;
|
G g;
|
||||||
double b[] = {10, 14};
|
double b[] = {10, 14};
|
||||||
@@ -312,7 +307,6 @@ void
|
|||||||
test6()
|
test6()
|
||||||
{
|
{
|
||||||
typedef std::piecewise_linear_distribution<> D;
|
typedef std::piecewise_linear_distribution<> D;
|
||||||
typedef D::param_type P;
|
|
||||||
typedef std::mt19937_64 G;
|
typedef std::mt19937_64 G;
|
||||||
G g;
|
G g;
|
||||||
double b[] = {10, 14, 16, 17};
|
double b[] = {10, 14, 16, 17};
|
||||||
|
|||||||
@@ -22,7 +22,6 @@ int main()
|
|||||||
{
|
{
|
||||||
typedef std::chrono::system_clock Clock;
|
typedef std::chrono::system_clock Clock;
|
||||||
typedef Clock::time_point time_point;
|
typedef Clock::time_point time_point;
|
||||||
typedef Clock::duration duration;
|
|
||||||
std::chrono::milliseconds ms(500);
|
std::chrono::milliseconds ms(500);
|
||||||
time_point t0 = Clock::now();
|
time_point t0 = Clock::now();
|
||||||
std::this_thread::sleep_until(t0 + ms);
|
std::this_thread::sleep_until(t0 + ms);
|
||||||
|
|||||||
Reference in New Issue
Block a user