Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions sycl/include/sycl/stl_wrappers/cassert
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <../include/cassert>
#endif

extern "C++" {
#ifdef __SYCL_DEVICE_ONLY__
#include <CL/__spirv/spirv_vars.hpp>

Expand All @@ -43,4 +42,3 @@ __devicelib_assert_fail(const char *, const char *, int32_t, const char *,
#endif
#endif
#endif
}
9 changes: 2 additions & 7 deletions sycl/test/basic_tests/assert_header_with_c_linkage.cpp
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
// RUN: %clangxx -fsycl -DASSERT -fsyntax-only %s
// RUN: %clangxx -fsycl -DCASSERT -fsyntax-only %s
// RUN: %clangxx -fsycl -fsyntax-only %s

// Verify that compilation works when assert.h/cassert is wrapped by a C linkage
// Verify that compilation works when assert.h is wrapped by a C linkage
// specification.

#ifdef __cplusplus
extern "C" {
#endif

#if defined(ASSERT)
#include <assert.h>
#elif defined(CASSERT)
#include <cassert>
#endif

#ifdef __cplusplus
}
Expand Down
Loading