import gdb-19990504 snapshot
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / annota2.cc
CommitLineData
a4cb37cb
SS
1class A {
2public:
3 int x;
4 int y;
5 int foo (int arg);
6};
7
8
9int A::foo (int arg)
10{
11 x += arg;
12 return arg *2;
13}
14
15int main()
16{
17 A a;
18
19 a.x = 1;
20 a.y = 2;
21
22 printf ("a.x is %d\n", a.x);
23 return 0;
24}
25
This page took 0.024442 seconds and 4 git commands to generate.