summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx-reference.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Parser/cxx-reference.cpp')
-rw-r--r--clang/test/Parser/cxx-reference.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-reference.cpp b/clang/test/Parser/cxx-reference.cpp
index 8d65defe7df..a1cbc5ea4de 100644
--- a/clang/test/Parser/cxx-reference.cpp
+++ b/clang/test/Parser/cxx-reference.cpp
@@ -17,3 +17,5 @@ int & const X = val; // expected-error {{'const' qualifier may not be applied to
int & volatile Y = val; // expected-error {{'volatile' qualifier may not be applied to a reference}}
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-error {{rvalue references are only allowed in C++0x}}
OpenPOWER on IntegriCloud