diff options
| author | Eric Fiselier <eric@efcs.ca> | 2018-01-17 22:48:09 +0000 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2018-01-17 22:48:09 +0000 |
| commit | 6b3e48b46a6e2b3283a9d37cfa3e0ac9c2ff91bb (patch) | |
| tree | d5c92589648166d9b17060abad203a16c008d198 /clang/test/Analysis/new-ctor-inlined.cpp | |
| parent | df1bb8a65d318f8552546221165404c3343424f7 (diff) | |
| download | bcm5719-llvm-6b3e48b46a6e2b3283a9d37cfa3e0ac9c2ff91bb.tar.gz bcm5719-llvm-6b3e48b46a6e2b3283a9d37cfa3e0ac9c2ff91bb.zip | |
Fix nodiscard failure tests on compilers w/o -verify.
Previously .fail.cpp tests for nodiscard were run with -Wunused-result
being a warning, not an error, when the compiler didn't support -verify.
When -verify isn't enabled this change judiciously adds -Werror=unused-result
when to only the failure tests containing the // expected-error string for nodiscard.
As a drive-by change, this patch also adds a missing // UNSUPPORTED: c++2a to
a test which was only supposed to run in C++ <= 11.
llvm-svn: 322776
Diffstat (limited to 'clang/test/Analysis/new-ctor-inlined.cpp')
0 files changed, 0 insertions, 0 deletions

