OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [gdb/] [testsuite/] [gdb.mi/] [gdb792.cc] - Blame information for rev 855

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
#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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.