[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaSYCL / special-class-attribute-on-non-sycl.cpp
blob3dc437c0a3bcc3b16267ff884294464ecdb8032b
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
4 #ifndef __SYCL_DEVICE_ONLY__
5 // expected-warning@+5 {{'sycl_special_class' attribute ignored}}
6 #else
7 // expected-no-diagnostics
8 #endif
10 class __attribute__((sycl_special_class)) special_class {
11 void __init(){}