xref: /llvm-project/clang/test/SemaCUDA/windows-calling-conv.cu (revision 9b7763821aedc282059309c640f69a735b4f5760)
1 // RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -aux-triple \
2 // RUN:   x86_64-pc-windows-msvc -fms-compatibility -fcuda-is-device \
3 // RUN:   -fsyntax-only -verify -x hip %s
4 // RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -fms-compatibility \
5 // RUN:   -fsyntax-only -verify -x hip %s
6 
7 // expected-no-diagnostics
8 
9 typedef void (__stdcall* funcTy)();
10 void invoke(funcTy f);
11 
callee()12 static void __stdcall callee() noexcept {
13 }
14 
foo()15 void foo() {
16    invoke(callee);
17 }
18