You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
545 B
10 lines
545 B
// RUN: %clang_cc1 %s -E -dM | FileCheck %s
|
|
// RUN: %clang_cc1 %s -fsycl -sycl-std=2017 -E -dM | FileCheck --check-prefix=CHECK-SYCL-STD %s
|
|
// RUN: %clang_cc1 %s -fsycl -fsycl-is-device -sycl-std=1.2.1 -E -dM | FileCheck --check-prefix=CHECK-SYCL-STD %s
|
|
// RUN: %clang_cc1 %s -fsycl -fsycl-is-device -E -dM | FileCheck --check-prefixes=CHECK-SYCL %s
|
|
|
|
// CHECK-NOT:#define __SYCL_DEVICE_ONLY__ 1
|
|
// CHECK-NOT:#define CL_SYCL_LANGUAGE_VERSION 121
|
|
// CHECK-SYCL-STD:#define CL_SYCL_LANGUAGE_VERSION 121
|
|
// CHECK-SYCL:#define __SYCL_DEVICE_ONLY__ 1
|