Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s |
Sebastian Redl | 7c80bd6 | 2009-03-16 23:22:08 +0000 | [diff] [blame] | 2 | |
3 | int && r1(int &&a); | ||||
4 | |||||
5 | typedef int && R; | ||||
Douglas Gregor | 2ff4478 | 2009-03-20 20:21:37 +0000 | [diff] [blame] | 6 | void r2(const R a) { |
7 | int & &&ar = a; // expected-error{{'ar' declared as a reference to a reference}} | ||||
8 | } | ||||
9 |