]> granicus.if.org Git - clang/commit
[CUDA] Rework tests now that we emit deferred diagnostics during sema. Test-only...
authorJustin Lebar <jlebar@google.com>
Wed, 19 Oct 2016 00:06:49 +0000 (00:06 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 19 Oct 2016 00:06:49 +0000 (00:06 +0000)
commitf210037cd8ee98faefe61e47ab9984e4ebceb4a8
treec3e29bd8e50c082e3a562fc41e6087a3e4ba0589
parent7311b27698a0dcf131622c86d09c0aa68a86054b
[CUDA] Rework tests now that we emit deferred diagnostics during sema.  Test-only change.

Summary:
Previously we had to split out a lot of our tests into a test that
checked only immediate errors and a test that checked only deferred
errors.  This was because, if you emitted any immediate errors, we
wouldn't run codegen, where the deferred errors were emitted.

We've fixed this, and now emit deferred errors during sema.  This lets
us merge a bunch of tests, and lets us convert some other tests to
-fsyntax-only.

Reviewers: tra

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@284553 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
test/PCH/pragma-cuda-force-host-device.cu
test/Parser/cuda-force-host-device-templates.cu
test/SemaCUDA/device-var-init.cu
test/SemaCUDA/exceptions-host-device.cu [deleted file]
test/SemaCUDA/exceptions.cu
test/SemaCUDA/function-overload-hd.cu [deleted file]
test/SemaCUDA/function-overload.cu
test/SemaCUDA/implicit-device-lambda-hd.cu [deleted file]
test/SemaCUDA/implicit-device-lambda.cu
test/SemaCUDA/static-vars-hd.cu [deleted file]
test/SemaCUDA/vla-host-device.cu [deleted file]
test/SemaCUDA/vla.cu