summaryrefslogtreecommitdiff
path: root/Examples/test-suite/errors/cpp_inherit.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/errors/cpp_inherit.i')
-rw-r--r--Examples/test-suite/errors/cpp_inherit.i47
1 files changed, 47 insertions, 0 deletions
diff --git a/Examples/test-suite/errors/cpp_inherit.i b/Examples/test-suite/errors/cpp_inherit.i
new file mode 100644
index 000000000..fdc77d1d5
--- /dev/null
+++ b/Examples/test-suite/errors/cpp_inherit.i
@@ -0,0 +1,47 @@
+%module xxx
+
+%inline %{
+struct A5;
+int A6;
+template<typename T> struct A7
+{
+};
+template<typename T> struct A8
+{
+};
+
+struct A0
+:
+ public A1
+ ,
+ A2,
+ private A3
+ ,
+ private A4
+ ,
+ A5
+ ,
+ A6
+ ,
+ A7<int>
+ ,
+ protected A8<double>
+{
+};
+
+struct A1
+{
+};
+
+class B1 {};
+
+class B0 :
+ B1,
+ B2<int>
+{
+};
+
+struct Recursive : Recursive
+{
+};
+%}