diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-25 02:17:32 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-25 02:17:32 +0000 |
commit | 16cf8f5b6f582876b64e132715280fc473f876b9 (patch) | |
tree | 0f05a6d0ce688c8d0776dc2039713625a2894ebe /test/Parser/cxx-reference.cpp | |
parent | 14429b918bd2f4cb52abc75546a7fe37142054ca (diff) |
Downgrade the error about rvalue references to an extension warning
and turn on __has_feature(cxx_rvalue_references). The core rvalue
references proposal seems to be fully implemented now, pending lots
more testing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124169 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, 1 insertions, 1 deletions
diff --git a/test/Parser/cxx-reference.cpp b/test/Parser/cxx-reference.cpp index 46f9fb07db..fae938bcaa 100644 --- a/test/Parser/cxx-reference.cpp +++ b/test/Parser/cxx-reference.cpp @@ -18,4 +18,4 @@ 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-error {{rvalue references are only allowed in C++0x}} +typedef int && RV; // expected-warning {{rvalue references are a C++0x extension}} |