From: Nico Weber Date: Thu, 1 Aug 2019 15:06:57 +0000 (+0000) Subject: Rename two clang tests from .cc to .cpp. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=263dbee25a234d77c02ba7bca897dfe653f292e0;p=clang 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.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367574 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/structured_bindings.cc b/test/Analysis/structured_bindings.cpp similarity index 73% rename from test/Analysis/structured_bindings.cc rename to test/Analysis/structured_bindings.cpp index 1e23246f9a..fcc976c4c3 100644 --- a/test/Analysis/structured_bindings.cc +++ b/test/Analysis/structured_bindings.cpp @@ -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}} diff --git a/test/CodeGen/ppc-vector-compare.cc b/test/CodeGen/ppc-vector-compare.cpp similarity index 100% rename from test/CodeGen/ppc-vector-compare.cc rename to test/CodeGen/ppc-vector-compare.cpp