diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-03-09 00:12:38 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-03-09 00:12:38 +0000 |
| commit | 464bc55a1e462b2a928e621a3182b28591afc059 (patch) | |
| tree | 8d152c3c8cefe830e166b257908ed221529fb6ed | |
| parent | b8d6db258e2a3643607e696963b474b75329e236 (diff) | |
| download | bcm5719-llvm-464bc55a1e462b2a928e621a3182b28591afc059.tar.gz bcm5719-llvm-464bc55a1e462b2a928e621a3182b28591afc059.zip | |
Readd testcase accidentally removed in r262888.
llvm-svn: 262971
| -rw-r--r-- | clang/test/CXX/dcl.dcl/dcl.attr/dcl.attr.nodiscard/p1.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 b6f8e7b7a52..e7a23824129 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}} |

