1 // RUN: %clang -### -fsycl -c %s 2>&1 | FileCheck %s --check-prefix=ENABLED 2 // RUN: %clang -### -fsycl %s 2>&1 | FileCheck %s --check-prefix=ENABLED 3 // RUN: %clang -### -fsycl -sycl-std=1.2.1 %s 2>&1 | FileCheck %s --check-prefix=ENABLED 4 // RUN: %clang -### -fsycl -sycl-std=121 %s 2>&1 | FileCheck %s --check-prefix=ENABLED 5 // RUN: %clang -### -fsycl -sycl-std=2017 %s 2>&1 | FileCheck %s --check-prefix=ENABLED 6 // RUN: %clang -### -fsycl -sycl-std=2020 %s 2>&1 | FileCheck %s --check-prefix=ENABLED 7 // RUN: %clang -### -fsycl -sycl-std=sycl-1.2.1 %s 2>&1 | FileCheck %s --check-prefix=ENABLED 8 // RUN: %clang -### -fno-sycl -fsycl %s 2>&1 | FileCheck %s --check-prefix=ENABLED 9 // RUN: %clang -### -sycl-std=2017 %s 2>&1 | FileCheck %s --check-prefix=DISABLED 10 // RUN: %clangxx -### -fsycl %s 2>&1 | FileCheck %s --check-prefix=ENABLED 11 // RUN: %clangxx -### -fno-sycl %s 2>&1 | FileCheck %s --check-prefix=DISABLED 12 // RUN: %clangxx -### -fsycl -fno-sycl %s 2>&1 | FileCheck %s --check-prefix=DISABLED 13 // RUN: %clangxx -### %s 2>&1 | FileCheck %s --check-prefix=DISABLED 14 // RUN: %clang_cl -### -fsycl -sycl-std=2017 -- %s 2>&1 | FileCheck %s --check-prefix=ENABLED 15 // 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 18 // ENABLED: "-cc1"{{.*}} "-fsycl-is-device" 19 // ENABLED-SAME: "-sycl-std={{[-.sycl0-9]+}}" 20 // DISABLED-NOT: "-fsycl-is-device" 21 // DISABLED-NOT: "-sycl-std=" 22 23 // RUN: %clang -### -fsycl %s 2>&1 | FileCheck %s --check-prefix=DEFAULT 24 // RUN: %clangxx -### -fsycl %s 2>&1 | FileCheck %s --check-prefix=DEFAULT 25 // RUN: %clang_cl -### -fsycl -- %s 2>&1 | FileCheck %s --check-prefix=DEFAULT 26 27 // DEFAULT: "-sycl-std=2020" 28