old-cross-binutils/gdb/testsuite/gdb.cp/m-static.h
Daniel Jacobowitz c7e64c9a76 * gdb.cp/m-static.h (class gnu_obj_4): Add dummy member.
* gdb.cp/m-static.cc (main): Write to test4.dummy, so that test4
	is allocated by the compiler.
	* gdb.mi/var-cmd.c: (do_special_tests): Write to u, anonu, s,
	anons, e, anone to force their allocation by the compiler.
2006-05-05 18:04:09 +00:00

14 lines
234 B
C++

// 2002-08-16
class gnu_obj_4
{
public:
static const int elsewhere;
static const int nowhere;
// At some point, perhaps:
// static const int everywhere = 317;
// try to ensure test4 is actually allocated
int dummy;
};