diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-03-15 22:02:01 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2009-03-15 22:02:01 +0000 |
commit | 05532f2a88161eb6d9b796614f1b82dca541ff22 (patch) | |
tree | 15b2ca5644b8821b6d7f3d43484d300643e36894 /test/Parser/cxx-reference.cpp | |
parent | 76b1c842c3932d3f83b3abf999dd9622e3e5fb12 (diff) |
Parser support for rvalue references.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-reference.cpp')
-rw-r--r-- | test/Parser/cxx-reference.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/Parser/cxx-reference.cpp b/test/Parser/cxx-reference.cpp index 8d65defe7d..1fd2fd652c 100644 --- a/test/Parser/cxx-reference.cpp +++ b/test/Parser/cxx-reference.cpp @@ -1,4 +1,4 @@ -// RUN: clang -fsyntax-only -verify %s +// RUN: clang -fsyntax-only -verify -std=c++0x %s extern char *bork; char *& bar = bork; @@ -17,3 +17,8 @@ int & const X = val; // expected-error {{'const' qualifier may not be applied to int & volatile Y = val; // expected-error {{'volatile' qualifier may not be applied to a reference}} int & const volatile Z = val; /* expected-error {{'const' qualifier may not be applied}} \ expected-error {{'volatile' qualifier may not be applied}} */ + +int && r1(int &&a); + +typedef int && R; +void r2(const R a); |