diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2019-08-01 15:06:57 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2019-08-01 15:06:57 +0000 |
| commit | 5c2d5f066fba2c080438a8643550b544ac466f5d (patch) | |
| tree | 887c338e355da4c363de0cef9a8d648233a2898a /clang/test/Analysis/structured_bindings.cpp | |
| parent | 5f5379d0767dd09d2cb9ecc5c80b6e292bda053b (diff) | |
| download | bcm5719-llvm-5c2d5f066fba2c080438a8643550b544ac466f5d.tar.gz bcm5719-llvm-5c2d5f066fba2c080438a8643550b544ac466f5d.zip | |
Rename two clang tests from .cc to .cpp.
clang/test/lit.cfg.py doesn't list .cc as test extension, so these
tests never ran.
Tweak one of the two tests to actually pass, now that it runs.
(The other one was already passing.)
llvm-svn: 367574
Diffstat (limited to 'clang/test/Analysis/structured_bindings.cpp')
| -rw-r--r-- | clang/test/Analysis/structured_bindings.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Analysis/structured_bindings.cpp b/clang/test/Analysis/structured_bindings.cpp new file mode 100644 index 00000000000..fcc976c4c3d --- /dev/null +++ b/clang/test/Analysis/structured_bindings.cpp @@ -0,0 +1,9 @@ +// RUN: %clang_analyze_cc1 -std=c++17 -analyzer-checker=core -verify %s + +struct s { int a; }; +int foo() { + auto[a] = s{1}; // FIXME: proper modelling + if (a) { + } +} // expected-warning{{control reaches end of non-void function}} + |

