aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-class.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2008-11-08 15:40:37 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2008-11-08 15:40:37 +0000
commitab963c6221ac088fad73a47bc7a0a0b266b030da (patch)
tree75975558abec507634001e66e9b2729c055486c0 /test/Parser/cxx-class.cpp
parentffb5b009f84db24ec4640204d53f8e70e8b6fce9 (diff)
Update C++ status to reflect parser capabilities for chapter 9 (classes). Slightly extend the class parser test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58909 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-class.cpp')
-rw-r--r--test/Parser/cxx-class.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/Parser/cxx-class.cpp b/test/Parser/cxx-class.cpp
index 6d030bdc57..ef0c901dfa 100644
--- a/test/Parser/cxx-class.cpp
+++ b/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 {};
+}