Skip to content

Commit

Permalink
static_assert to check sycl version type
Browse files Browse the repository at this point in the history
  • Loading branch information
dklochkov-emb committed Nov 19, 2024
1 parent 4bae848 commit cb45f28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/header/header_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<decltype(SYCL_LANGUAGE_VERSION), long>);
static_assert(SYCL_LANGUAGE_VERSION == 202012L);
#endif

Expand Down

0 comments on commit cb45f28

Please sign in to comment.