diff options
| author | Justin Lebar <jlebar@google.com> | 2016-10-19 00:06:49 +0000 |
|---|---|---|
| committer | Justin Lebar <jlebar@google.com> | 2016-10-19 00:06:49 +0000 |
| commit | d3fd70dedd75f9b27f7198840a1ada82d54b95ab (patch) | |
| tree | 13643e417a8d8d574929e75251dfce4f61a47bf9 /clang/test/Parser | |
| parent | b47711ab274e2de40e014dc72d9d87f884a893d7 (diff) | |
| download | bcm5719-llvm-d3fd70dedd75f9b27f7198840a1ada82d54b95ab.tar.gz bcm5719-llvm-d3fd70dedd75f9b27f7198840a1ada82d54b95ab.zip | |
[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
llvm-svn: 284553
Diffstat (limited to 'clang/test/Parser')
| -rw-r--r-- | clang/test/Parser/cuda-force-host-device-templates.cu | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/test/Parser/cuda-force-host-device-templates.cu b/clang/test/Parser/cuda-force-host-device-templates.cu index 68ec9c8e673..315de1cf67a 100644 --- a/clang/test/Parser/cuda-force-host-device-templates.cu +++ b/clang/test/Parser/cuda-force-host-device-templates.cu @@ -1,8 +1,7 @@ -// RUN: %clang_cc1 -std=c++14 -S -verify -fcuda-is-device %s -o /dev/null +// RUN: %clang_cc1 -std=c++14 -fsyntax-only -verify -fcuda-is-device %s // Check how the force_cuda_host_device pragma interacts with template -// instantiations. The errors here are emitted at codegen, so we can't do -// -fsyntax-only. +// instantiations. template <typename T> auto foo() { // expected-note {{declared here}} |

