Skip to content

Commit 124d076

Browse files
committed
Added tests
Signed-off-by: Rauf, Rana <[email protected]>
1 parent c717682 commit 124d076

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// RUN: %clangxx -Werror -fsycl %s -c
2+
3+
#include <iostream>
4+
#include <sycl/sycl.hpp>
5+
void foo() { std::cout << 42; }
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// RUN: %clangxx -Werror -fsycl %s -c
2+
3+
// clang-format off
4+
#include <sycl/sycl.hpp>
5+
#include <iostream>
6+
// clang-format on
7+
void foo() { std::cout << 42; }

sycl/test/basic_tests/no_iostream.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// RUN: %clangxx -fsycl %s -S -emit-llvm -o- | FileCheck %s
2+
// CHECK-NOT: @_ZStL8__ioinit = internal global %"class.std::ios_base::Init"
3+
//
4+
// Tests if <sycl/sycl.hpp> headers include any <iostream> headers
5+
6+
#include <sycl/sycl.hpp>
7+
using namespace sycl;
8+
9+
int main() { return 0; }

0 commit comments

Comments
 (0)