summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.gdbtk/cpp_variable.cc
blob: deecc295a7f312f43a8a2a991532563c7f5a4881 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "cpp_variable.h"

static void do_simple_class_tests (void);

int
VB::fvb_pub () {return 300 + vb_pub_int;}

int
VB::vvb_pub () {return 400 + vb_pub_int;}

int
V::f () {return 600 + v_pub_int;}

int
V::vv () {return 400 + v_pub_int;}

int
VC::fvc () {return 300 + vc_pub_int;}

int
VC::vfvc () {return 100 + vc_pub_int;}

main ()
{
  do_simple_class_tests ();
}

static void
do_simple_class_tests (void)
{
  V *v = new V;
  V vv;
}