13 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@+5 {{'sycl_special_class' attribute ignored}}6#else7// expected-no-diagnostics8#endif9 10class __attribute__((sycl_special_class)) special_class {11 void __init(){}12};13