Skip to content

Commit 3ca414b

Browse files
authored
[libc++] Move some standard tests from test/libcxx (#152982)
This also removes some tests which were redundant, wrong, or never run. Specifically, - `libcxx/utilities/meta/stress_tests/*` were never run and are of questionable usefulness - `libcxx/utilities/template.bitset/includes.pass.cpp` is completely redundant and partially incorrect Also notably, `libcxx/language.support/support.c.headers/support.c.headers.other/math.lerp.verify.cpp` has been refactored to only test the standard mandate.
1 parent 267f592 commit 3ca414b

File tree

14 files changed

+39
-334
lines changed

14 files changed

+39
-334
lines changed

libcxx/test/libcxx/language.support/support.c.headers/support.c.headers.other/math.lerp.verify.cpp

Lines changed: 0 additions & 39 deletions
This file was deleted.

libcxx/test/libcxx/utilities/meta/stress_tests/stress_test_is_same.sh.cpp

Lines changed: 0 additions & 55 deletions
This file was deleted.

libcxx/test/libcxx/utilities/meta/stress_tests/stress_test_metafunctions.sh.cpp

Lines changed: 0 additions & 65 deletions
This file was deleted.

libcxx/test/libcxx/utilities/meta/stress_tests/stress_test_variant_overloads_impl.sh.cpp

Lines changed: 0 additions & 119 deletions
This file was deleted.

libcxx/test/libcxx/utilities/template.bitset/includes.pass.cpp

Lines changed: 0 additions & 33 deletions
This file was deleted.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
//===----------------------------------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
// <math.h>
10+
11+
// [support.c.headers.other]/1
12+
// ... except for the functions described in [sf.cmath], the
13+
// std::lerp function overloads ([c.math.lerp]) ...
14+
15+
#include <cassert>
16+
#include <math.h>
17+
18+
template <class = int>
19+
int lerp(float, float, float) {
20+
return 32;
21+
}
22+
23+
template <class = int>
24+
int lerp(double, double, double) {
25+
return 32;
26+
}
27+
28+
template <class = int>
29+
int lerp(long double, long double, long double) {
30+
return 32;
31+
}
32+
33+
int main(int, char**) {
34+
assert(lerp(0.f, 0.f, 0.f) == 32);
35+
assert(lerp(0., 0., 0.) == 32);
36+
assert(lerp(0.l, 0.l, 0.l) == 32);
37+
38+
return 0;
39+
}

libcxx/test/std/thread/thread.threads/thread.thread.this/sleep_for_tested_elsewhere.pass.cpp

Lines changed: 0 additions & 22 deletions
This file was deleted.

libcxx/test/libcxx/vendor/ibm/bad_function_call.pass.cpp renamed to libcxx/test/std/utilities/function.objects/func.wrap/func.wrap.badcall/visibility_inlines_hidden.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9-
// REQUIRES: target={{.+}}-aix{{.*}}
109
// ADDITIONAL_COMPILE_FLAGS: -fvisibility-inlines-hidden
1110

1211
// When there is a weak hidden symbol in user code and a strong definition

0 commit comments

Comments
 (0)