Skip to content

Commit a6720fa

Browse files
author
Sergey Kanaev
committed
[SYCL] Fix test
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
1 parent a7ecb95 commit a6720fa

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

clang/test/Driver/sycl.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,24 @@
55
// RUN: %clang -### -fsycl -sycl-std=2017 %s 2>&1 | FileCheck %s --check-prefix=ENABLED
66
// RUN: %clang -### -fsycl -sycl-std=sycl-1.2.1 %s 2>&1 | FileCheck %s --check-prefix=ENABLED
77
// RUN: %clang -### -fno-sycl -fsycl %s 2>&1 | FileCheck %s --check-prefix=ENABLED
8-
// RUN: %clang -### -sycl-std=2017 %s 2>&1 | FileCheck %s --check-prefix=DISABLED
8+
// RUN: %clang -### -sycl-std=2017 %s 2>&1 | FileCheck %s --check-prefix=NOT_ENABLED
99
// RUN: %clangxx -### -fsycl %s 2>&1 | FileCheck %s --check-prefix=ENABLED
1010
// RUN: %clangxx -### -fno-sycl %s 2>&1 | FileCheck %s --check-prefix=DISABLED
1111
// RUN: %clangxx -### -fsycl -fno-sycl %s 2>&1 | FileCheck %s --check-prefix=DISABLED
12-
// RUN: %clangxx -### %s 2>&1 | FileCheck %s --check-prefix=DISABLED
13-
// RUN: %clangxx -### -sycl-std=some-std %s 2>&1 | FileCheck %s --check-prefix=DISABLED
12+
// RUN: %clangxx -### %s 2>&1 | FileCheck %s --check-prefix=NOT_ENABLED
13+
// RUN: %clangxx -### -sycl-std=some-std %s 2>&1 | FileCheck %s --check-prefix=NOT_ENABLED
1414
// RUN: %clang_cl -### -fsycl -sycl-std=2017 -- %s 2>&1 | FileCheck %s --check-prefix=ENABLED
1515
// RUN: %clang_cl -### -fsycl -- %s 2>&1 | FileCheck %s --check-prefix=ENABLED
16-
// RUN: %clang_cl -### -- %s 2>&1 | FileCheck %s --check-prefix=DISABLED
17-
// RUN: %clang_cl -### -sycl-std=some-std -- %s 2>&1 | FileCheck %s --check-prefix=DISABLED
16+
// RUN: %clang_cl -### -- %s 2>&1 | FileCheck %s --check-prefix=NOT_ENABLED
17+
// RUN: %clang_cl -### -sycl-std=some-std -- %s 2>&1 | FileCheck %s --check-prefix=NOT_ENABLED
1818

1919
// ENABLED: "-cc1"{{.*}} "-fsycl-is-device"
2020
// ENABLED-SAME: "-sycl-std={{[-.sycl0-9]+}}"
2121
// ENABLED-SAME: "-internal-isystem" "{{.*}}bin{{[/\\]+}}..{{[/\\]+}}include{{[/\\]+}}sycl"
2222

23+
// NOT_ENABLED-NOT: "-fsycl-is-device"
24+
// NOT_ENABLED-NOT: "-fsycl-std-layout-kernel-params"
25+
2326
// DISABLED-NOT: "-fsycl-is-device"
2427
// DISABLED-NOT: "-sycl-std={{.*}}"
2528
// DISABLED-NOT: "-fsycl-std-layout-kernel-params"

0 commit comments

Comments
 (0)