From 999d772e876cc1bde00c2889ed804a9992fad513 Mon Sep 17 00:00:00 2001 From: Dan Hoeflinger Date: Mon, 23 Jan 2023 17:36:15 -0500 Subject: [PATCH] null_type implementation Signed-off-by: Dan Hoeflinger --- clang/runtime/dpct-rt/include/dpl_extras/functional.h.inc | 6 ++++++ .../dpct/helper_files_ref/include/dpl_extras/functional.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/clang/runtime/dpct-rt/include/dpl_extras/functional.h.inc b/clang/runtime/dpct-rt/include/dpl_extras/functional.h.inc index 4e28de1552d5..601f37aebe3f 100644 --- a/clang/runtime/dpct-rt/include/dpl_extras/functional.h.inc +++ b/clang/runtime/dpct-rt/include/dpl_extras/functional.h.inc @@ -56,6 +56,12 @@ namespace dpct { +// DPCT_LABEL_BEGIN|null_type|dpct +// DPCT_DEPENDENCY_EMPTY +// DPCT_CODE +struct null_type {}; +// DPCT_LABEL_END + namespace internal { // DPCT_LABEL_BEGIN|enable_if_execution_policy|dpct::internal diff --git a/clang/test/dpct/helper_files_ref/include/dpl_extras/functional.h b/clang/test/dpct/helper_files_ref/include/dpl_extras/functional.h index bdd8cb862799..51afdd8a44eb 100644 --- a/clang/test/dpct/helper_files_ref/include/dpl_extras/functional.h +++ b/clang/test/dpct/helper_files_ref/include/dpl_extras/functional.h @@ -22,6 +22,8 @@ namespace dpct { +struct null_type {}; + namespace internal { template