brintos

brintos / llvm-project-archived public Read only

0
0
Text · 495 B · 9257c78 Raw
15 lines · cpp
1// RUN: %clang_cc1 -std=c++11 -fsyntax-only -fsycl-is-device -verify %s2// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -x c++ %s3 4#ifndef __SYCL_DEVICE_ONLY__5// expected-warning@+7 {{'sycl_kernel' attribute ignored}}6// expected-warning@+8 {{'clang::sycl_kernel' attribute ignored}}7#else8// expected-no-diagnostics9#endif10 11template <typename T, typename A, int B>12__attribute__((sycl_kernel)) void foo(T P);13template <typename T, typename A, int B>14[[clang::sycl_kernel]] void foo1(T P);15