r262971 - Readd testcase accidentally removed in r262888.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 8 16:12:38 PST 2016


Author: rsmith
Date: Tue Mar  8 18:12:38 2016
New Revision: 262971

URL: http://llvm.org/viewvc/llvm-project?rev=262971&view=rev
Log:
Readd testcase accidentally removed in r262888.

Modified:
    cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p1.cpp

Modified: cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p1.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p1.cpp?rev=262971&r1=262970&r2=262971&view=diff
==============================================================================
--- cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p1.cpp (original)
+++ cfe/trunk/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p1.cpp Tue Mar  8 18:12:38 2016
@@ -6,3 +6,5 @@ struct [[nodiscard("Wrong")]] S3 {}; //
 
 [[nodiscard]] int f();
 enum [[nodiscard]] E {};
+
+namespace [[nodiscard]] N {} // expected-warning {{'nodiscard' attribute only applies to functions, methods, enums, and classes}}




More information about the cfe-commits mailing list