Sign in
gnu
/
binutils-gdb
/
36170420e329a8d6229eb89b38d8680cf39f1d53
/
.
/
gdb
/
testsuite
/
gdb.cp
/
annota3.cc
blob: 234752e49af20230f41aee10ab4a37bf03e78cde [
file
] [
log
] [
blame
]
#include
<stdio.h>
class
A
{
public
:
int
x
;
int
y
;
int
foo
(
int
arg
);
};
int
A
::
foo
(
int
arg
)
{
x
+=
arg
;
return
arg
*
2
;
}
int
main
()
{
A a
;
a
.
x
=
0
;
a
.
x
=
1
;
a
.
y
=
2
;
printf
(
"a.x is %d\n"
,
a
.
x
);
return
0
;
}