]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.gdbtk/cpp_variable.h
This is the merge of the Itcl3.0 gdbtk development branch into the
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.gdbtk / cpp_variable.h
1 struct _foo
2 {
3 int a[10];
4 char *p;
5 };
6
7 class VA
8 {
9 public:
10 int va_pub_int;
11 char *va_pub_charp;
12
13 private:
14 int va_priv_int;
15 char *va_priv_charp;
16
17 protected:
18 struct _foo bar;
19 };
20
21 class VB
22 {
23 public:
24 int vb_pub_int;
25
26 int fvb_pub ();
27 virtual int vvb_pub ();
28
29 private:
30 int vb_priv_int;
31 char *vb_priv_charp;
32 };
33
34 class VC : public VA
35 {
36 public:
37 int vc_pub_int;
38
39 int fvc ();
40 virtual int vfvc ();
41 };
42
43 class V : public VA, public VB, public VC
44 {
45 public:
46 int f ();
47 virtual vv ();
48 int v_pub_int;
49 char *v_pub_charp;
50
51 private:
52 int v_priv_int;
53 char *v_priv_charp;
54 };