Skip to content

Commit 73ce7a8

Browse files
committed
Merge the two tests into one
1 parent 7b77170 commit 73ce7a8

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

sycl/test/basic_tests/assert_header_with_c_linkage.cpp

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

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
45
// specification.
56

67
#ifdef __cplusplus
78
extern "C" {
89
#endif
910

11+
#if defined(ASSERT)
1012
#include <assert.h>
13+
#elif defined(CASSERT)
14+
#include <cassert>
15+
#endif
1116

1217
#ifdef __cplusplus
1318
}

sycl/test/basic_tests/cassert_header_with_c_linkage.cpp

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)