]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.base/annota2.cc
import gdb-1999-05-10
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / annota2.cc
CommitLineData
cd0fc7c3
SS
1#include <stdio.h>
2
a4cb37cb
SS
3class A {
4public:
5 int x;
6 int y;
7 int foo (int arg);
8};
9
10
11int A::foo (int arg)
12{
13 x += arg;
14 return arg *2;
15}
16
17int main()
18{
19 A a;
20
21 a.x = 1;
22 a.y = 2;
23
24 printf ("a.x is %d\n", a.x);
25 return 0;
26}
27