Mercurial > hg > CbC > CbC_llvm
annotate clang/test/SemaSYCL/kernel-attribute-on-non-sycl.cpp @ 222:81f6424ef0e3 llvm-original
LLVM original branch
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 18 Jul 2021 22:10:01 +0900 |
parents | 1d019706d866 |
children |
rev | line source |
---|---|
150 | 1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -fsycl-is-device -verify %s |
2 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -x c++ %s | |
3 | |
4 #ifndef __SYCL_DEVICE_ONLY__ | |
5 // expected-warning@+7 {{'sycl_kernel' attribute ignored}} | |
6 // expected-warning@+8 {{'sycl_kernel' attribute ignored}} | |
7 #else | |
8 // expected-no-diagnostics | |
9 #endif | |
10 | |
11 template <typename T, typename A, int B> | |
12 __attribute__((sycl_kernel)) void foo(T P); | |
13 template <typename T, typename A, int B> | |
14 [[clang::sycl_kernel]] void foo1(T P); |