Skip to content

Commit b39cdcc

Browse files
Update driver test
1 parent 4ef605a commit b39cdcc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

clang/test/Driver/sycl-unsupported.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,20 @@
6464
// UNSUPPORTED_OPT-NOT: clang{{.*}} "-fsycl-is-device"{{.*}} "[[OPT_CC1]]{{.*}}"
6565
// UNSUPPORTED_OPT: clang{{.*}} "-fsycl-is-host"{{.*}} "[[OPT_CC1]]{{.*}}"
6666

67-
// "--auto-pch" should only be enabled for SYCL RTC compilations, regular driver
68-
// shouldn't know about it:
67+
// Options that should only be enabled for SYCL RTC compilations, regular driver
68+
// shouldn't know about them:
6969
//
7070
// RUN: not %clangxx -### %s --auto-pch 2>&1 | FileCheck %s --check-prefix AUTO_PCH
7171
// RUN: not %clangxx -fsycl-device-only -### %s --auto-pch 2>&1 | FileCheck %s --check-prefix AUTO_PCH
7272
// RUN: not %clangxx -fsycl -### %s --auto-pch 2>&1 | FileCheck %s --check-prefix AUTO_PCH
7373
//
7474
// AUTO_PCH: error: unknown argument: '--auto-pch'
75+
//
76+
// RUN: not %clangxx -### %s --persistent-auto-pch="%t.dir" 2>&1 | FileCheck %s --check-prefix PERSISTENT_AUTO_PCH
77+
// RUN: not %clangxx -fsycl-device-only -### %s --persistent-auto-pch="%t.dir" 2>&1 | FileCheck %s --check-prefix PERSISTENT_AUTO_PCH
78+
// RUN: not %clangxx -fsycl -### %s --persistent-auto-pch="%t.dir" 2>&1 | FileCheck %s --check-prefix PERSISTENT_AUTO_PCH
79+
//
80+
// PERSISTENT_AUTO_PCH: error: unknown argument: '--persistent-auto-pch={{.*}}'
7581

7682
// FPGA support has been removed, usage of any FPGA specific options and any
7783
// options that have FPGA specific arguments should emit a specific error

0 commit comments

Comments
 (0)