diff options
Diffstat (limited to 'test/input')
-rw-r--r-- | test/input/Class-implicit-member-access-mutable.cxx | 10 | ||||
-rw-r--r-- | test/input/Class-implicit-member-access.cxx | 9 | ||||
-rw-r--r-- | test/input/Class-implicit-member-array.cxx | 3 | ||||
-rw-r--r-- | test/input/Class-implicit-member-const.cxx | 5 | ||||
-rw-r--r-- | test/input/Class-implicit-member-reference.cxx | 5 | ||||
-rw-r--r-- | test/input/Class-implicit-members.cxx | 7 |
6 files changed, 39 insertions, 0 deletions
diff --git a/test/input/Class-implicit-member-access-mutable.cxx b/test/input/Class-implicit-member-access-mutable.cxx new file mode 100644 index 0000000..8d9aaec --- /dev/null +++ b/test/input/Class-implicit-member-access-mutable.cxx @@ -0,0 +1,10 @@ +class base { +protected: + base(); + ~base(); +private: + base(base const&); + base& operator=(base const&); + mutable int data; +}; +class start: public base {}; diff --git a/test/input/Class-implicit-member-access.cxx b/test/input/Class-implicit-member-access.cxx new file mode 100644 index 0000000..d9992bc --- /dev/null +++ b/test/input/Class-implicit-member-access.cxx @@ -0,0 +1,9 @@ +class base { +protected: + base(); + ~base(); +private: + base(base const&); + base& operator=(base const&); +}; +class start: public base {}; diff --git a/test/input/Class-implicit-member-array.cxx b/test/input/Class-implicit-member-array.cxx new file mode 100644 index 0000000..44002dc --- /dev/null +++ b/test/input/Class-implicit-member-array.cxx @@ -0,0 +1,3 @@ +class start { + int data[2]; +}; diff --git a/test/input/Class-implicit-member-const.cxx b/test/input/Class-implicit-member-const.cxx new file mode 100644 index 0000000..59221af --- /dev/null +++ b/test/input/Class-implicit-member-const.cxx @@ -0,0 +1,5 @@ +class start { + int const data; +public: + start(); +}; diff --git a/test/input/Class-implicit-member-reference.cxx b/test/input/Class-implicit-member-reference.cxx new file mode 100644 index 0000000..67da21d --- /dev/null +++ b/test/input/Class-implicit-member-reference.cxx @@ -0,0 +1,5 @@ +class start { + int& ref; +public: + start(); +}; diff --git a/test/input/Class-implicit-members.cxx b/test/input/Class-implicit-members.cxx new file mode 100644 index 0000000..2d79ee5 --- /dev/null +++ b/test/input/Class-implicit-members.cxx @@ -0,0 +1,7 @@ +class start { + start method(start const& x) { + start s; + s = x; + return s; + } +}; |