From cb45f289030a00266c668d56ad2b661583852b67 Mon Sep 17 00:00:00 2001 From: "Klochkov, Denis" Date: Tue, 19 Nov 2024 03:14:41 -0800 Subject: [PATCH] static_assert to check sycl version type --- tests/header/header_test.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/header/header_test.cpp b/tests/header/header_test.cpp index 5c8a02926..591dbf7d7 100644 --- a/tests/header/header_test.cpp +++ b/tests/header/header_test.cpp @@ -45,6 +45,7 @@ class TEST_NAME : public util::test_base { #define TEST_FAIL log.note("SYCL_LANGUAGE_VERSION not present"); #else + static_assert(std::is_same_v); static_assert(SYCL_LANGUAGE_VERSION == 202012L); #endif