diff --git a/libcxx/test/libcxx/lint/lint_libcpp_macros_in_tests.sh.c:wqpp b/libcxx/test/libcxx/lint/lint_libcpp_macros_in_tests.sh.c:wqpp new file mode 100644 --- /dev/null +++ b/libcxx/test/libcxx/lint/lint_libcpp_macros_in_tests.sh.c:wqpp @@ -0,0 +1,16 @@ +//===----------------------------------------------------------------------===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +// Tests in the test/std should work with all Standard library implementations. +// This test greps for the usage of some libc++ internal defines that have a +// TEST macro that achieves the same in a portable fashion. +// +// Upon failure the found results are part of the test's failure output. This +// makes finding the occurrences easy. + +RUN: not grep -R _LIBCPP_HAS_NO_INT128 %S/../../std