diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-11-08 15:40:37 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2008-11-08 15:40:37 +0000 |
commit | f4485de48ab519b0ae0de434f0aa7ce2d7ec1ce1 (patch) | |
tree | be816744a534577817d8d2b083a22315d53cc16f /clang/test | |
parent | 5a48f232f76391f490f375dee8643e415e05855a (diff) | |
download | bcm5719-llvm-f4485de48ab519b0ae0de434f0aa7ce2d7ec1ce1.tar.gz bcm5719-llvm-f4485de48ab519b0ae0de434f0aa7ce2d7ec1ce1.zip |
Update C++ status to reflect parser capabilities for chapter 9 (classes). Slightly extend the class parser test.
llvm-svn: 58909
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Parser/cxx-class.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx-class.cpp b/clang/test/Parser/cxx-class.cpp index 6d030bdc578..ef0c901dfa5 100644 --- a/clang/test/Parser/cxx-class.cpp +++ b/clang/test/Parser/cxx-class.cpp @@ -1,4 +1,5 @@ -// RUN: clang -parse-noop -verify %s +// RUN: clang -parse-noop -verify %s +class C; class C { public: protected: @@ -14,7 +15,14 @@ public: void m() { int l = 2; } + virtual int vf() const volatile = 0; private: int x,f(),y,g(); + inline int h(); + static const int sci = 10; }; +void glo() +{ + struct local {}; +} |