Sync usage with man page.
[netbsd-mini2440.git] / gnu / dist / gdb6 / gdb / testsuite / gdb.cp / annota3.cc
blob234752e49af20230f41aee10ab4a37bf03e78cde
1 #include <stdio.h>
3 class A {
4 public:
5 int x;
6 int y;
7 int foo (int arg);
8 };
11 int A::foo (int arg)
13 x += arg;
14 return arg *2;
17 int main()
19 A a;
21 a.x = 0;
22 a.x = 1;
23 a.y = 2;
25 printf ("a.x is %d\n", a.x);
26 return 0;