Skip to content

Commit 6d1aaf5

Browse files
[SYCL] Add test for regression after #12793 (#13542)
Patch which causes the regression: #12793 Revert of that patch: #13326
1 parent 4349388 commit 6d1aaf5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// REQUIRES: windows
2+
3+
// RUN: %clang_cl -fsycl /MDd -c %s -o %t.obj
4+
// RUN: %clang_cl -fsycl %t.obj -o %t.out
5+
// RUN: %t.out
6+
7+
// The test aims to prevent regressions similar to the one which caused by
8+
// https://github.com/intel/llvm/pull/12793.
9+
// The failure happens if perform separate compile and link, and pass /MDd to
10+
// the compile line. In that case, user application will crash during launching
11+
// with abort() message.
12+
13+
#include <sycl/sycl.hpp>
14+
15+
#include <iostream>
16+
17+
int main() {
18+
sycl::queue q;
19+
std::cout << "passed" << std::endl;
20+
return 0;
21+
}

0 commit comments

Comments
 (0)