blob: 389f2b947003c9d3f6f42106d229ca683fea052b [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -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