We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b77170 commit 73ce7a8Copy full SHA for 73ce7a8
sycl/test/basic_tests/assert_header_with_c_linkage.cpp
@@ -1,13 +1,18 @@
1
-// RUN: %clangxx -fsycl -c %s
+// RUN: %clangxx -fsycl -DASSERT -c %s
2
+// RUN: %clangxx -fsycl -DCASSERT -c %s
3
-// Verify that compilation works when assert.h is wrapped by a C linkage
4
+// Verify that compilation works when assert.h/cassert is wrapped by a C linkage
5
// specification.
6
7
#ifdef __cplusplus
8
extern "C" {
9
#endif
10
11
+#if defined(ASSERT)
12
#include <assert.h>
13
+#elif defined(CASSERT)
14
+#include <cassert>
15
+#endif
16
17
18
}
sycl/test/basic_tests/cassert_header_with_c_linkage.cpp
0 commit comments