[PATCH 6/10] libstdc++: Add oneapi and dpl names to test coverage for bad names
Tomasz Kaminski
tkaminsk@redhat.com
Tue Dec 1 09:16:14 GMT 2026
On Fri, Nov 27, 2026 at 10:52 PM Jonathan Wakely <jwakely@redhat.com> wrote:
> libstdc++-v3/ChangeLog:
>
> * testsuite/17_intro/names_pstl.cc: Add names from oneDPL
> headers.
> * testsuite/17_intro/names.cc: Add Rest.
> ---
>
> Tested x86_64-linux.
>
LGTM
>
> libstdc++-v3/testsuite/17_intro/names.cc | 1 +
> libstdc++-v3/testsuite/17_intro/names_pstl.cc | 13 +++++++++++++
> 2 files changed, 14 insertions(+)
>
> diff --git a/libstdc++-v3/testsuite/17_intro/names.cc
> b/libstdc++-v3/testsuite/17_intro/names.cc
> index c6fe81c5325d..649af55ba2a8 100644
> --- a/libstdc++-v3/testsuite/17_intro/names.cc
> +++ b/libstdc++-v3/testsuite/17_intro/names.cc
> @@ -225,6 +225,7 @@
> #define Proj2 Proj2 is not a reserved name
> #define Ptr Ptr is not a reserved name
> #define Reference Reference is not a reserved name
> +#define Rest Rest is not a reserved name
> #define Rg Rg is not a reserved name
> #define Rs Rs is not a reserved name
> #define Seq Seq is not a reserved name
> diff --git a/libstdc++-v3/testsuite/17_intro/names_pstl.cc
> b/libstdc++-v3/testsuite/17_intro/names_pstl.cc
> index 019e4774ff25..77960606353b 100644
> --- a/libstdc++-v3/testsuite/17_intro/names_pstl.cc
> +++ b/libstdc++-v3/testsuite/17_intro/names_pstl.cc
> @@ -10,6 +10,19 @@
> # include <tbb/tbb.h>
> #endif
> // Now we can define the macros to poison uses of non-reserved names:
> +#define oneapi not a reserved name
> +#define dpl not a reserved name
> +#define MapValue not a reserved name
> +#define get_impl not a reserved name
> +#define ret_type not a reserved name
> +#define holder not a reserved name
> +#define tuplewrapper not a reserved name
> +#define make_tuplewrapper not a reserved name
> +#define make_tuplewrapper_functor not a reserved name
> +#define make_inner_tuple_functor not a reserved name
> +#define map_tuple_impl not a reserved name
> +#define map_tuple not a reserved name
> +#define map_tuplewrapper not a reserved name
> #include "names.cc"
> // And finally, include all the headers that have PSTL content:
> #include <execution>
> --
> 2.56.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20261201/4b7c5925/attachment.htm>
More information about the Libstdc++
mailing list