[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenSYCL / convergent.cpp
blob779f1592da0e00355f7d84bd57ba2370871c1999
1 // RUN: %clang_cc1 -fsycl-is-device -emit-llvm -disable-llvm-passes \
2 // RUN: -triple spir64 -emit-llvm %s -o - | FileCheck %s
4 // CHECK-DAG: Function Attrs:
5 // CHECK-DAG-SAME: convergent
6 // CHECK-DAG-NEXT: define void @_Z3foov
7 void foo() {
8 int a = 1;
11 template <typename Name, typename Func>
12 __attribute__((sycl_kernel)) void kernel_single_task(const Func &kernelFunc) {
13 kernelFunc();
16 int main() {
17 kernel_single_task<class fake_kernel>([] { foo(); });
18 return 0;