aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx0x-rvalue-reference.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-03-20 20:21:37 +0000
committerDouglas Gregor <dgregor@apple.com>2009-03-20 20:21:37 +0000
commit2ff44784d180bb96953c22de4a0b2efb5d50263a (patch)
tree09cf1b445c1912d576565f31d9ca7bad00ac1342 /test/Parser/cxx0x-rvalue-reference.cpp
parentf2e880a99c8b08976069331283392cc22b07701d (diff)
Some minor tweaks and additional tests for rvalue references
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67397 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx0x-rvalue-reference.cpp')
-rw-r--r--test/Parser/cxx0x-rvalue-reference.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/Parser/cxx0x-rvalue-reference.cpp b/test/Parser/cxx0x-rvalue-reference.cpp
index 3643233272..5736b79ff7 100644
--- a/test/Parser/cxx0x-rvalue-reference.cpp
+++ b/test/Parser/cxx0x-rvalue-reference.cpp
@@ -3,4 +3,7 @@
int && r1(int &&a);
typedef int && R;
-void r2(const R a);
+void r2(const R a) {
+ int & &&ar = a; // expected-error{{'ar' declared as a reference to a reference}}
+}
+