[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Frontend / sycl.cpp
blob61a30d561d8301f5e5c669e7da2b57c94bb526a4
1 // Test that we disallow -cc1 -fsycl, even when specifying device or host mode.
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
7 // ERROR: error: unknown argument: '-fsycl'
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
13 // ERROR-BOTH: error: invalid argument '-fsycl-is-device' not allowed with '-fsycl-is-host'