aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx0x-rvalue-reference.cpp
diff options
context:
space:
mode:
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}}
+}
+