aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/cxx3.h
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/cxx3.h')
-rw-r--r--testsuite/cxx3.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/cxx3.h b/testsuite/cxx3.h
new file mode 100644
index 0000000..ad2de7e
--- /dev/null
+++ b/testsuite/cxx3.h
@@ -0,0 +1,22 @@
+struct A
+ {
+ virtual int a () { return 1; }
+ virtual int b () { return 2; }
+ virtual ~A () {}
+ int c;
+ };
+struct B
+ {
+ virtual int a () { return 3; }
+ virtual ~B () {}
+ int b;
+ };
+struct C
+ {
+ virtual int a () { return 4; }
+ virtual int b () { return 5; }
+ virtual ~C () {}
+ int c;
+ };
+
+void do_check (void (*check) (A *x, B *y), A *x);