blob: ae568e8859c0b185522985777f810312405f51dc [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s
Sebastian Redl7c80bd62009-03-16 23:22:08 +00002
3int && r1(int &&a);
4
5typedef int && R;
Douglas Gregor2ff44782009-03-20 20:21:37 +00006void r2(const R a) {
7 int & &&ar = a; // expected-error{{'ar' declared as a reference to a reference}}
8}
9