| Daniel Dunbar | a45cf5b | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify -std=c++0x %s |
| Sebastian Redl | 0f8b23f | 2009-03-16 23:22:08 +0000 | [diff] [blame] | 2 | |
| 3 | int && r1(int &&a); | ||||
| 4 | |||||
| 5 | typedef int && R; | ||||
| Douglas Gregor | 63b4ff6 | 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 | |||||