bolt/deps/llvm-18.1.8/clang/test/SemaSYCL/special-class-attribute-on-non-sycl.cpp
2025-02-14 19:21:04 +01:00

12 lines
350 B
C++

// RUN: %clang_cc1 -std=c++11 -fsyntax-only -fsycl-is-device -verify %s
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -x c++ %s
#ifndef __SYCL_DEVICE_ONLY__
// expected-warning@+5 {{'sycl_special_class' attribute ignored}}
#else
// expected-no-diagnostics
#endif
class __attribute__((sycl_special_class)) special_class {
void __init(){}
};