[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:
Stephan T. Lavavej
2017-07-19 22:02:29 +00:00
parent 321617c33d
commit 3c00cff599
16 changed files with 0 additions and 32 deletions

View File

@@ -34,7 +34,6 @@ test()
void test_edges()
{
typedef std::complex<double> C;
const double pi = std::atan2(+0., -0.);
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
for (unsigned i = 0; i < N; ++i)

View File

@@ -34,7 +34,6 @@ test()
void test_edges()
{
typedef std::complex<double> C;
const double pi = std::atan2(+0., -0.);
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
for (unsigned i = 0; i < N; ++i)

View File

@@ -34,7 +34,6 @@ test()
void test_edges()
{
typedef std::complex<double> C;
const double pi = std::atan2(+0., -0.);
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
for (unsigned i = 0; i < N; ++i)

View File

@@ -34,7 +34,6 @@ test()
void test_edges()
{
typedef std::complex<double> C;
const double pi = std::atan2(+0., -0.);
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
for (unsigned i = 0; i < N; ++i)

View File

@@ -34,7 +34,6 @@ test()
void test_edges()
{
typedef std::complex<double> C;
const double pi = std::atan2(+0., -0.);
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
for (unsigned i = 0; i < N; ++i)

View File

@@ -34,7 +34,6 @@ test()
void test_edges()
{
typedef std::complex<double> C;
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
for (unsigned i = 0; i < N; ++i)
{

View File

@@ -34,7 +34,6 @@ test()
void test_edges()
{
typedef std::complex<double> C;
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
for (unsigned i = 0; i < N; ++i)
{

View File

@@ -34,7 +34,6 @@ test()
void test_edges()
{
typedef std::complex<double> C;
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
for (unsigned i = 0; i < N; ++i)
{

View File

@@ -34,7 +34,6 @@ test()
void test_edges()
{
typedef std::complex<double> C;
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
for (unsigned i = 0; i < N; ++i)
{

View File

@@ -34,7 +34,6 @@ test()
void test_edges()
{
typedef std::complex<double> C;
const unsigned N = sizeof(testcases) / sizeof(testcases[0]);
for (unsigned i = 0; i < N; ++i)
{

View File

@@ -33,7 +33,6 @@ void
test1()
{
typedef std::lognormal_distribution<> D;
typedef D::param_type P;
typedef std::mt19937 G;
G g;
D d(-1./8192, 0.015625);
@@ -78,7 +77,6 @@ void
test2()
{
typedef std::lognormal_distribution<> D;
typedef D::param_type P;
typedef std::mt19937 G;
G g;
D d(-1./32, 0.25);
@@ -123,7 +121,6 @@ void
test3()
{
typedef std::lognormal_distribution<> D;
typedef D::param_type P;
typedef std::mt19937 G;
G g;
D d(-1./8, 0.5);
@@ -168,7 +165,6 @@ void
test4()
{
typedef std::lognormal_distribution<> D;
typedef D::param_type P;
typedef std::mt19937 G;
G g;
D d;
@@ -213,7 +209,6 @@ void
test5()
{
typedef std::lognormal_distribution<> D;
typedef D::param_type P;
typedef std::mt19937 G;
G g;
D d(-0.78125, 1.25);

View File

@@ -33,7 +33,6 @@ int main()
{
{
typedef std::student_t_distribution<> D;
typedef D::param_type P;
typedef std::minstd_rand G;
G g;
D d(5.5);
@@ -69,7 +68,6 @@ int main()
}
{
typedef std::student_t_distribution<> D;
typedef D::param_type P;
typedef std::minstd_rand G;
G g;
D d(10);
@@ -105,7 +103,6 @@ int main()
}
{
typedef std::student_t_distribution<> D;
typedef D::param_type P;
typedef std::minstd_rand G;
G g;
D d(100);

View File

@@ -33,7 +33,6 @@ void
test1()
{
typedef std::extreme_value_distribution<> D;
typedef D::param_type P;
typedef std::mt19937 G;
G g;
D d(0.5, 2);
@@ -75,7 +74,6 @@ void
test2()
{
typedef std::extreme_value_distribution<> D;
typedef D::param_type P;
typedef std::mt19937 G;
G g;
D d(1, 2);
@@ -117,7 +115,6 @@ void
test3()
{
typedef std::extreme_value_distribution<> D;
typedef D::param_type P;
typedef std::mt19937 G;
G g;
D d(1.5, 3);
@@ -159,7 +156,6 @@ void
test4()
{
typedef std::extreme_value_distribution<> D;
typedef D::param_type P;
typedef std::mt19937 G;
G g;
D d(3, 4);

View File

@@ -33,7 +33,6 @@ int main()
{
{
typedef std::gamma_distribution<> D;
typedef D::param_type P;
typedef std::mt19937 G;
G g;
D d(0.5, 2);
@@ -73,7 +72,6 @@ int main()
}
{
typedef std::gamma_distribution<> D;
typedef D::param_type P;
typedef std::mt19937 G;
G g;
D d(1, .5);
@@ -113,7 +111,6 @@ int main()
}
{
typedef std::gamma_distribution<> D;
typedef D::param_type P;
typedef std::mt19937 G;
G g;
D d(2, 3);

View File

@@ -44,7 +44,6 @@ void
test1()
{
typedef std::piecewise_linear_distribution<> D;
typedef D::param_type P;
typedef std::mt19937_64 G;
G g;
double b[] = {10, 14, 16, 17};
@@ -97,7 +96,6 @@ void
test2()
{
typedef std::piecewise_linear_distribution<> D;
typedef D::param_type P;
typedef std::mt19937_64 G;
G g;
double b[] = {10, 14, 16, 17};
@@ -150,7 +148,6 @@ void
test3()
{
typedef std::piecewise_linear_distribution<> D;
typedef D::param_type P;
typedef std::mt19937_64 G;
G g;
double b[] = {10, 14, 16, 17};
@@ -203,7 +200,6 @@ void
test4()
{
typedef std::piecewise_linear_distribution<> D;
typedef D::param_type P;
typedef std::mt19937_64 G;
G g;
double b[] = {10, 14, 16};
@@ -257,7 +253,6 @@ void
test5()
{
typedef std::piecewise_linear_distribution<> D;
typedef D::param_type P;
typedef std::mt19937_64 G;
G g;
double b[] = {10, 14};
@@ -312,7 +307,6 @@ void
test6()
{
typedef std::piecewise_linear_distribution<> D;
typedef D::param_type P;
typedef std::mt19937_64 G;
G g;
double b[] = {10, 14, 16, 17};

View File

@@ -22,7 +22,6 @@ int main()
{
typedef std::chrono::system_clock Clock;
typedef Clock::time_point time_point;
typedef Clock::duration duration;
std::chrono::milliseconds ms(500);
time_point t0 = Clock::now();
std::this_thread::sleep_until(t0 + ms);