1 // Test that we disallow -cc1 -fsycl, even when specifying device or host mode. 2 3 // RUN: not %clang_cc1 -fsycl %s 2>&1 | FileCheck --check-prefix=ERROR %s 4 // RUN: not %clang_cc1 -fsycl -fsycl-is-device %s 2>&1 | FileCheck --check-prefix=ERROR %s 5 // RUN: not %clang_cc1 -fsycl -fsycl-is-host %s 2>&1 | FileCheck --check-prefix=ERROR %s 6 7 // ERROR: error: unknown argument: '-fsycl' 8 9 // Test that you cannot specify -fsycl-is-device and -fsycl-is-host at the same time. 10 // RUN: not %clang_cc1 -fsycl-is-device -fsycl-is-host %s 2>&1 | FileCheck --check-prefix=ERROR-BOTH %s 11 // RUN: not %clang_cc1 -fsycl-is-host -fsycl-is-device %s 2>&1 | FileCheck --check-prefix=ERROR-BOTH %s 12 13 // ERROR-BOTH: error: invalid argument '-fsycl-is-device' not allowed with '-fsycl-is-host' 14