[libcxx-commits] [PATCH] D152007: [libc++] Remove min_max_macros test
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jun 2 10:16:24 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3b12d34a70ca: [libc++] Remove min_max_macros test (authored by ldionne).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152007/new/
https://reviews.llvm.org/D152007
Files:
libcxx/test/libcxx/min_max_macros.gen.py
Index: libcxx/test/libcxx/min_max_macros.gen.py
===================================================================
--- libcxx/test/libcxx/min_max_macros.gen.py
+++ /dev/null
@@ -1,33 +0,0 @@
-#===----------------------------------------------------------------------===##
-#
-# 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
-#
-#===----------------------------------------------------------------------===##
-
-# Test that headers are not tripped up by the surrounding code defining the
-# min() and max() macros.
-
-# RUN: %{python} %s %{libcxx}/utils
-
-import sys
-sys.path.append(sys.argv[1])
-from libcxx.test.header_information import header_restrictions, public_headers
-
-for header in public_headers:
- test_condition_begin = '#if ' + header_restrictions[header] if header in header_restrictions else ''
- test_condition_end = '#endif' if header in header_restrictions else ''
-
- print(f"""\
-//--- {header}.compile.pass.cpp
-#define TEST_MACROS() static_assert(min() == true && max() == true, "")
-#define min() true
-#define max() true
-
-#include <__config>
-{test_condition_begin}
-#include <{header}>
-TEST_MACROS();
-{test_condition_end}
-""")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152007.527898.patch
Type: text/x-patch
Size: 1316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230602/84ba6a9d/attachment.bin>
More information about the libcxx-commits
mailing list