llvm-capstone/clang/test/SemaCUDA
Yaxun (Sam) Liu 9b7763821a
Reland "[CUDA][HIP] Fix overloading resolution in global var init" (#65606)
https://reviews.llvm.org/D158247 caused regressions for HIP on Windows
and was reverted.

A reduced test case is:

```
typedef void (__stdcall* funcTy)();
void invoke(funcTy f);

static void __stdcall callee() noexcept {
}

void foo() {
   invoke(callee);
}
```

It is due to clang missing handling host/device attributes for calling
convention at a few places

This patch fixes that.
2023-09-07 23:18:30 -04:00
..
Inputs
add-inline-in-definition.cu
addr-of-overloaded-fn.cu
alias.cu
allow-int128.cu
amdgpu-attrs.cu
amdgpu-bf16.cu
amdgpu-f128.cu
amdgpu-size_t.cu
amdgpu-windows-vectorcall.cu Reland "[CUDA][HIP] Fix overloading resolution in global var init" (#65606) 2023-09-07 23:18:30 -04:00
asm_delayed_diags.cu
asm-constraints-device.cu
asm-constraints-mixed.cu
atomic-ops.cu
attr-declspec.cu
attributes-on-non-cuda.cu
autoret-global.cu
bad-attributes.cu
bad-calls-on-same-line.cu
bf16.cu
builtin-mangled-name.cu
builtins-unsafe-atomics-gfx90a.cu
builtins.cu
call-device-fn-from-host.cu
call-host-fn-from-device.cu
call-kernel-from-kernel.cu
call-stack-for-deferred-err.cu
config-type.cu
const-var.cu
constexpr-ctor.cu
constexpr-var.cu
constexpr-variables.cu
cuda-builtin-vars.cu
cuda-inherits-calling-conv.cu
cxx11-kernel-call.cu
default-ctor.cu
deferred-diags-limit.cu
deferred-diags.cu
deferred-oeverload.cu
dependent-device-var.cu
device-use-host-var.cu
device-var-init.cu
error-includes-mode.cu
exceptions.cu
extern-shared.cu
float16.cu
fp16-arg-return.cu
function-overload.cu Reland "[CUDA][HIP] Fix overloading resolution in global var init" (#65606) 2023-09-07 23:18:30 -04:00
function-target.cu
function-template-overload.cu
global-initializers.cu Reland "[CUDA][HIP] Fix overloading resolution in global var init" (#65606) 2023-09-07 23:18:30 -04:00
gnu-inline.cu
host-device-constexpr.cu
implicit-copy.cu
implicit-device-lambda.cu
implicit-intrinsic.cu
implicit-member-target-collision-cxx11.cu
implicit-member-target-collision.cu
implicit-member-target-inherited.cu
implicit-member-target.cu
inherited-ctor.cu
kernel-call.cu
lambda.cu
launch_bounds.cu
lit.local.cfg
managed-var.cu
member-init.cu
method-target.cu
neon-attrs.cu
no-call-stack-for-immediate-errs.cu
no-destructor-overload.cu
no-host-device-constexpr.cu
noinline.cu
openmp-parallel.cu
openmp-static-func.cu
openmp-target.cu
overloaded-delete.cu
pr27778.cu
pr54537.cu
qualifiers.cu
reference-to-kernel-fn.cu
spirv-int128.cu
static-device-var.cu
template-arg-deduction.cu
trace-through-global.cu
union-init.cu
usual-deallocators.cu
vararg.cu
vla.cu
windows-calling-conv.cu Reland "[CUDA][HIP] Fix overloading resolution in global var init" (#65606) 2023-09-07 23:18:30 -04:00