Richard Smith | 9ca5c42 | 2011-10-13 22:29:44 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s |
Sebastian Redl | 0f8b23f | 2009-03-16 23:22:08 +0000 | [diff] [blame] | 2 | |
| 3 | int && r1(int &&a); |
| 4 | |
| 5 | typedef int && R; |
Richard Smith | 4025944 | 2014-02-19 00:13:27 +0000 | [diff] [blame] | 6 | void r2(const R a) { // expected-warning {{'const' qualifier on reference type 'R' (aka 'int &&') has no effect}} |
Douglas Gregor | 63b4ff6 | 2009-03-20 20:21:37 +0000 | [diff] [blame] | 7 | int & &&ar = a; // expected-error{{'ar' declared as a reference to a reference}} |
| 8 | } |
| 9 | |