2011-10-14 06:29:44 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
|
2009-03-17 07:22:08 +08:00
|
|
|
|
|
|
|
int && r1(int &&a);
|
|
|
|
|
|
|
|
typedef int && R;
|
2009-03-21 04:21:37 +08:00
|
|
|
void r2(const R a) {
|
|
|
|
int & &&ar = a; // expected-error{{'ar' declared as a reference to a reference}}
|
|
|
|
}
|
|
|
|
|