r335725 - Add regression test for PR37935.

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 27 05:05:06 PDT 2018


Author: nico
Date: Wed Jun 27 05:05:06 2018
New Revision: 335725

URL: http://llvm.org/viewvc/llvm-project?rev=335725&view=rev
Log:
Add regression test for PR37935.

Modified:
    cfe/trunk/test/SemaCXX/cxx-deprecated.cpp

Modified: cfe/trunk/test/SemaCXX/cxx-deprecated.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/cxx-deprecated.cpp?rev=335725&r1=335724&r2=335725&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/cxx-deprecated.cpp (original)
+++ cfe/trunk/test/SemaCXX/cxx-deprecated.cpp Wed Jun 27 05:05:06 2018
@@ -24,3 +24,6 @@ void g() {
 }
 
 namespace M = N; // expected-warning {{'N' is deprecated}}
+
+// Shouldn't diag:
+[[nodiscard, deprecated("")]] int PR37935();




More information about the cfe-commits mailing list