summaryrefslogtreecommitdiffstats
path: root/foo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'foo.cpp')
-rw-r--r--foo.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/foo.cpp b/foo.cpp
new file mode 100644
index 0000000..58e9b21
--- /dev/null
+++ b/foo.cpp
@@ -0,0 +1,24 @@
+class c0
+{
+ public:
+ c0() : x(0) { }
+ c0(int e) : x(e) { }
+ protected:
+ int getVal(void) {
+ return x;
+ }
+ private:
+ int x;
+};
+
+class c1 : public c0
+{
+ c0 a;
+};
+
+int main(int argc, char *argv[])
+{
+
+ return 0;
+}
+