From 464bc55a1e462b2a928e621a3182b28591afc059 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 9 Mar 2016 00:12:38 +0000 Subject: [PATCH] Readd testcase accidentally removed in r262888. llvm-svn: 262971 --- clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p1.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p1.cpp b/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p1.cpp index b6f8e7b..e7a2382 100644 --- a/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p1.cpp +++ b/clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p1.cpp @@ -6,3 +6,5 @@ struct [[nodiscard("Wrong")]] S3 {}; // expected-error {{'nodiscard' cannot have [[nodiscard]] int f(); enum [[nodiscard]] E {}; + +namespace [[nodiscard]] N {} // expected-warning {{'nodiscard' attribute only applies to functions, methods, enums, and classes}} -- 2.7.4