Skip to content

Commit 7594952

Browse files
authored
Remove superfluous C++ linkage specification from cassert header
1 parent 4868065 commit 7594952

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

sycl/test/basic_tests/assert_header_with_c_linkage.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1-
// RUN: %clangxx -fsycl -DASSERT -fsyntax-only %s
2-
// RUN: %clangxx -fsycl -DCASSERT -fsyntax-only %s
1+
// RUN: %clangxx -fsycl -fsyntax-only %s
32

4-
// Verify that compilation works when assert.h/cassert is wrapped by a C linkage
3+
// Verify that compilation works when assert.h is wrapped by a C linkage
54
// specification.
65

76
#ifdef __cplusplus
87
extern "C" {
98
#endif
109

11-
#if defined(ASSERT)
1210
#include <assert.h>
13-
#elif defined(CASSERT)
14-
#include <cassert>
15-
#endif
1611

1712
#ifdef __cplusplus
1813
}

0 commit comments

Comments
 (0)