forked from OSchip/llvm-project
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
This commit is contained in:
parent
5f5379d076
commit
5c2d5f066f
|
@ -1,10 +1,9 @@
|
|||
// RUN: %clang_analyze_cc1 -std=c++17 -analyzer-checker=core -verify %s
|
||||
|
||||
// expected-no-diagnostics
|
||||
struct s { int a; };
|
||||
int foo() {
|
||||
auto[a] = s{1}; // FIXME: proper modelling
|
||||
if (a) {
|
||||
}
|
||||
}
|
||||
} // expected-warning{{control reaches end of non-void function}}
|
||||
|
Loading…
Reference in New Issue