brintos

brintos / llvm-project-archived public Read only

0
0
Text · 453 B · 0786f65 Raw
18 lines · plain
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 %s4// RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -fms-compatibility \5// RUN:   -fsyntax-only -verify -x hip %s6 7// expected-no-diagnostics8 9typedef void (__stdcall* funcTy)();10void invoke(funcTy f);11 12static void __stdcall callee() noexcept {13}14 15void foo() {16   invoke(callee);17}18