Skip to content

Commit 28aa051

Browse files
[SYCL] Address tests failures after #6469 #6506 (#6509)
Just a workaround in sycl/test/regression/fsycl-host-compiler-win.cpp while the proper fix is being investigated/prepared.
1 parent a41b33c commit 28aa051

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

sycl/test/basic_tests/no_iostream.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %clangxx -fsycl %s -S -emit-llvm -o- | FileCheck %s
2-
// CHECK-NOT: {{^@}}
2+
// CHECK-NOT: {{^@llvm.global_ctors}}
33
//
4-
// Tests if <sycl/sycl.hpp> headers include any <iostream> headers
4+
// Tests if inclusion <sycl/sycl.hpp> causes execution of global ctors
5+
// and related performance hit.
56

67
#include <sycl/sycl.hpp>

sycl/test/regression/fsycl-host-compiler-win.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414

1515
#include <sycl/sycl.hpp>
1616

17+
// FIXME: Modify <sycl/details/iostream_proxy.hpp> so that it would require
18+
// proper libs via "#pragma comment(lib, ...)".
19+
#include <iostream>
20+
1721
#ifndef DEFINE_CHECK
1822
#error predefined macro not set
1923
#endif // DEFINE_CHECK

0 commit comments

Comments
 (0)