Skip to content

Commit 244290b

Browse files
committed
Added a LIT test for the changes in driver
1 parent 9e163f0 commit 244290b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

clang/test/Driver/sycl-MD-default.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
// REQUIRES: clang-driver
22

3+
// RUN: %clang -### -fsycl -c %s 2>&1 \
4+
// RUN: | FileCheck -check-prefix=CHK-DEFAULT %s
5+
// RUN: %clangxx -### -fsycl -c %s 2>&1 \
6+
// RUN: | FileCheck -check-prefix=CHK-DEFAULT %s
37
// RUN: %clang_cl -### -fsycl -c %s 2>&1 \
48
// RUN: | FileCheck -check-prefix=CHK-DEFAULT %s
59
// RUN: %clang_cl -### -MD -fsycl -c %s 2>&1 \
@@ -9,6 +13,12 @@
913
// CHK-DEFAULT: "-D_MT" "-D_DLL"
1014
// CHK-DEFAULT: "--dependent-lib=msvcrt{{d*}}"
1115

16+
// RUN: %clang -### -fsycl-device-only -c %s 2>&1 \
17+
// RUN: | FileCheck -check-prefix=CHK-DEFAULT-DEF %s
18+
// RUN: %clangxx -### -fsycl -c %s 2>&1 \
19+
// RUN: | FileCheck -check-prefix=CHK-DEFAULT-DEF %s
20+
// CHK-DEFAULT-DEF: "-D_MT" "-D_DLL"
21+
1222
// RUN: %clang_cl -### -MT -fsycl -c %s 2>&1 \
1323
// RUN: | FileCheck -check-prefix=CHK-ERROR %s
1424
// RUN: %clang_cl -### -MTd -fsycl -c %s 2>&1 \

0 commit comments

Comments
 (0)