repo.or.cz
/
binutils-gdb
/
blckswan.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Automatic date update in version.in
[binutils-gdb/blckswan.git]
/
gdb
/
testsuite
/
gdb.mi
/
gdb792.cc
blob
a698a12e0fbaed54eae0e2978a8bee5dc5ee2da2
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
}