diff options
author | Charles Li <charles_li@playstation.sony.com> | 2015-12-10 01:07:17 +0000 |
---|---|---|
committer | Charles Li <charles_li@playstation.sony.com> | 2015-12-10 01:07:17 +0000 |
commit | 85dec55989d42c659708467623c360e59078b121 (patch) | |
tree | d4f46b8d66b5202ede1cf0578cf7e1c2365b034a /clang/test/Parser/cxx-reference.cpp | |
parent | 7d8e41e82c17fa3c49a06329a48a897e18e02537 (diff) | |
download | bcm5719-llvm-85dec55989d42c659708467623c360e59078b121.tar.gz bcm5719-llvm-85dec55989d42c659708467623c360e59078b121.zip |
[Lit Test] Updated 20 Lit tests to be C++11 compatible.
This is the 5th Lit test patch.
Expanded expected diagnostics to vary by C++ dialect.
Expanded RUN line to: default, C++98/03 and C++11.
llvm-svn: 255196
Diffstat (limited to 'clang/test/Parser/cxx-reference.cpp')
-rw-r--r-- | clang/test/Parser/cxx-reference.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx-reference.cpp b/clang/test/Parser/cxx-reference.cpp index b62638b1a4f..58bd7ab6072 100644 --- a/clang/test/Parser/cxx-reference.cpp +++ b/clang/test/Parser/cxx-reference.cpp @@ -1,4 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s extern char *bork; char *& bar = bork; @@ -18,4 +20,7 @@ int & volatile Y = val; // expected-error {{'volatile' qualifier may not be appl int & const volatile Z = val; /* expected-error {{'const' qualifier may not be applied}} \ expected-error {{'volatile' qualifier may not be applied}} */ -typedef int && RV; // expected-warning {{rvalue references are a C++11 extension}} +typedef int && RV; +#if __cplusplus <= 199711L +// expected-warning@-2 {{rvalue references are a C++11 extension}} +#endif |