aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaCUDA/amdgpu-windows-vectorcall.cu
blob: 7ef8a94750b4c47f4948ea3b70d9ae1c316f7dba (plain)
1
2
3
4
5
// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-pc-windows-msvc -fms-compatibility -fcuda-is-device -fsyntax-only -verify %s
// RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -fms-compatibility -fsyntax-only -verify %s

__cdecl void hostf1();
__vectorcall void (*hostf2)() = hostf1; // expected-error {{cannot initialize a variable of type 'void ((*))() __attribute__((vectorcall))' with an lvalue of type 'void () __attribute__((cdecl))'}}