diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-03-23 00:00:23 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-03-23 00:00:23 +0000 |
commit | 743de1f671ee0ef213c7404cfdc85579dd12c56e (patch) | |
tree | 79310cea41ee23c8e69b42c357b1b7cf3c75f8cb /test/Parser/cxx-reference.cpp | |
parent | f05c05d2e1a2952e6cc7c3e54366fb8d99ff579c (diff) |
Recognize rvalue references in C++03, but complain about them. This leads to far better error recovery.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67495 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-reference.cpp')
-rw-r--r-- | test/Parser/cxx-reference.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/Parser/cxx-reference.cpp b/test/Parser/cxx-reference.cpp index 8d65defe7d..a1cbc5ea4d 100644 --- a/test/Parser/cxx-reference.cpp +++ b/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}} |