Debian Codegraph @

clang/test/SemaCUDA/windows-calling-conv.cu

raw
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
12 static void __stdcall callee() noexcept {
13 }
14
15 void foo() {
16 invoke(callee);
17 }