]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.mi/gdb792.cc
Update Copyright year range in all files maintained by GDB.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.mi / gdb792.cc
1 #include <string.h>
2 #include <stdio.h>
3
4 class Q
5 {
6 int v;
7 protected:
8 int qx;
9 int qy;
10 int w;
11 };
12
13 class B
14 {
15 int k;
16 public:
17 int bx;
18 int by;
19 };
20
21 class A
22 {
23 int u;
24
25 public:
26 A()
27 {
28 };
29 int x;
30 char buffer[10];
31
32 protected:
33 int y;
34 B b;
35
36 private:
37 float z;
38 };
39
40 class C : public A
41 {
42 public:
43 C()
44 {
45 };
46 int zzzz;
47 private:
48 int ssss;
49 };
50
51 int main()
52 {
53 A a;
54 C c;
55 Q q;
56 strcpy( a.buffer, "test" );
57 printf ( "%.10s\n", a.buffer );
58 return 0;
59 }