import gdb-19990504 snapshot
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / annota2.cc
1 class A {
2 public:
3 int x;
4 int y;
5 int foo (int arg);
6 };
7
8
9 int A::foo (int arg)
10 {
11 x += arg;
12 return arg *2;
13 }
14
15 int 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.030342 seconds and 5 git commands to generate.