llvm-project/clang/test/SemaCUDA
Justin Lebar e060feb7b1 [CUDA] Disallow overloading destructors.
Summary:
We'd attempted to allow this, but turns out we were doing a very bad
job.  :)

Making this work properly would be a giant change in clang.  For
example, we'd need to make CXXRecordDecl::getDestructor()
context-sensitive, because the destructor you end up with depends on
where you're calling it from.

For now (and hopefully for ever), just disallow overloading of
destructors in CUDA.

Reviewers: rsmith

Subscribers: cfe-commits, tra

Differential Revision: https://reviews.llvm.org/D24571

llvm-svn: 283120
2016-10-03 16:48:23 +00:00
..
Inputs [CUDA] Raise an error if a wrong-side call is codegen'ed. 2016-08-15 23:00:49 +00:00
addr-of-overloaded-fn.cu [CUDA] Add additional testcases for EraseUnwantedCUDAMatches. 2016-07-12 23:23:12 +00:00
alias.cu [CUDA] Reject the alias attribute in CUDA device code. 2016-01-23 21:28:10 +00:00
amdgpu-attrs.cu [AMDGPU] Expose flat work group size, register and wave control attributes 2016-09-26 01:02:57 +00:00
asm-constraints-device.cu Ignore device-side asm constraint errors while compiling CUDA code for host and vice versa. 2015-03-19 18:40:25 +00:00
asm-constraints-mixed.cu Produce a better diagnostic for global register variables. 2015-11-18 00:15:28 +00:00
attributes-on-non-cuda.cu [CUDA] Report an error if code tries to mix incompatible CUDA attributes. 2016-01-13 01:07:35 +00:00
bad-attributes.cu [CUDA] Disallow __constant__ local variables. 2016-09-30 23:57:34 +00:00
builtins.cu NVPTX: Use the nvvm builtins to read SRegs rather than the legacy ptx ones 2016-07-07 16:41:08 +00:00
call-device-fn-from-host.cu [CUDA] Fix "declared here" note on deferred wrong-side errors. 2016-08-16 00:48:21 +00:00
call-host-fn-from-device.cu [CUDA] Fix "declared here" note on deferred wrong-side errors. 2016-08-16 00:48:21 +00:00
config-type.cu
cuda-builtin-vars.cu [CUDA] Don't specify exact line numbers in cuda-builtin-vars.cu. 2016-02-24 21:49:30 +00:00
cxx11-kernel-call.cu [CUDA] Warn undeclared identifiers in CUDA kernel calls 2016-01-14 23:31:30 +00:00
device-var-init.cu Avoid depending on test inputes that aren't in Inputs 2016-05-20 00:38:25 +00:00
exceptions-host-device.cu [CUDA] Disallow exceptions in device code. 2016-09-28 22:45:54 +00:00
exceptions.cu [CUDA] Disallow exceptions in device code. 2016-09-28 22:45:54 +00:00
extern-shared.cu [CUDA] Allow extern __shared__ on empty-length arrays. 2016-10-02 15:24:50 +00:00
function-overload.cu [CUDA] Disallow overloading destructors. 2016-10-03 16:48:23 +00:00
function-target.cu CUDA: Add option to allow host device functions to call host functions 2015-02-24 21:45:33 +00:00
global-initializers-host.cu [CUDA] Reject calls to __device__ functions from host variable global initializers. 2016-08-10 01:09:21 +00:00
host-device-constexpr.cu [CUDA] Make unattributed constexpr functions implicitly host+device. 2016-03-30 23:30:21 +00:00
implicit-copy.cu Consider calls from implict host device functions as valid in SemaCUDA. 2014-12-16 20:12:38 +00:00
implicit-device-lambda-hd.cu [CUDA] Make lambdas inherit __host__ and __device__ attributes from the scope in which they're created. 2016-09-30 17:14:53 +00:00
implicit-device-lambda.cu [CUDA] Fix implicit-device-lambda.cu after r282911. 2016-09-30 20:17:37 +00:00
implicit-intrinsic.cu [CUDA] Remove three obsolete CUDA cc1 flags. 2016-03-29 16:24:16 +00:00
implicit-member-target-collision-cxx11.cu [CUDA] Remove three obsolete CUDA cc1 flags. 2016-03-29 16:24:16 +00:00
implicit-member-target-collision.cu
implicit-member-target.cu Add support for derived class special members hiding functions brought in from 2016-05-13 06:47:56 +00:00
kernel-call.cu [CUDA] Warn undeclared identifiers in CUDA kernel calls 2016-01-14 23:31:30 +00:00
launch_bounds.cu [cuda] Allow using integral non-type template parameters as launch_bounds attribute arguments. 2015-04-21 22:55:54 +00:00
lit.local.cfg
method-target.cu [CUDA] Print a "previous-decl" note when calling an illegal member fn. 2016-08-10 01:09:18 +00:00
no-destructor-overload.cu [CUDA] Disallow overloading destructors. 2016-10-03 16:48:23 +00:00
no-host-device-constexpr.cu [CUDA] Make unattributed constexpr functions implicitly host+device. 2016-03-30 23:30:21 +00:00
overloaded-delete.cu [CUDA] Add additional testcases for EraseUnwantedCUDAMatches. 2016-07-12 23:23:12 +00:00
pr27778.cu [CUDA] Add implicit conversion of __launch_bounds__ arguments to rvalue. 2016-06-06 22:54:57 +00:00
qualifiers.cu [cuda] Preserve TLS storage class of host variable even if it's a 2015-04-28 20:31:49 +00:00
reference-to-kernel-fn.cu [CUDA] Add test checking our ability to take a function pointer to a __global__ function on the host side. 2016-09-14 21:50:11 +00:00
target_attr_inheritance.cu [CUDA] Do not merge CUDA target attributes. 2016-09-13 22:16:30 +00:00
vararg.cu [CUDA] Don't allow templated variadic functions. 2016-03-22 22:06:19 +00:00
vla-host-device.cu [CUDA] Disallow variable-length arrays in CUDA device code. 2016-09-28 22:45:58 +00:00
vla.cu [CUDA] Disallow variable-length arrays in CUDA device code. 2016-09-28 22:45:58 +00:00