diff options
author | Anders Carlsson <andersca@mac.com> | 2011-01-16 23:56:42 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-01-16 23:56:42 +0000 |
commit | 1f3b6fdabbb10779a473d6315154d7325ce20aea (patch) | |
tree | 1a81fa5cf3af3bf54977a0cbc6a8b225b9b6ae29 /test/Parser/cxx0x-override-control-keywords.cpp | |
parent | 0dc5f9aea3597f2ed400dd0c1bf45ebbb4a051f3 (diff) | |
download | clang-1f3b6fdabbb10779a473d6315154d7325ce20aea.tar.gz |
Begin work on supporting "N3206: Override control: Eliminating Attributes", from
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2010/n3206.htm
This lands support for parsing virt-specifier-seq after member functions, including the
contextual keywords 'final', and 'override'. The keywords are not yet used for anything.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123606 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx0x-override-control-keywords.cpp')
-rw-r--r-- | test/Parser/cxx0x-override-control-keywords.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Parser/cxx0x-override-control-keywords.cpp b/test/Parser/cxx0x-override-control-keywords.cpp new file mode 100644 index 0000000000..5643621764 --- /dev/null +++ b/test/Parser/cxx0x-override-control-keywords.cpp @@ -0,0 +1,6 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++0x %s +struct S { + virtual void final() final; + virtual void override() override; + virtual void n() new; +}; |