// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
;
;
int i;
typedef int& LRI;
typedef int&& RRI;
typedef LRI& r1; ;
typedef const LRI& r2; ; // expected-warning {{'const' qualifier on reference type 'LRI' (aka 'int &') has no effect}}
typedef const LRI&& r3; ; // expected-warning {{'const' qualifier on reference type 'LRI' (aka 'int &') has no effect}}
typedef RRI& r4; ;
typedef RRI&& r5; ;