Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -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 |