mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-19 23:33:31 +08:00
2004-01-23 David Carlton <carlton@kealia.com>
* gdb.cp/namespace.cc (C::ensureRefs): New. * gdb.cp/namespace1.cc (C::ensureOtherRefs): New.
This commit is contained in:
parent
a1b8c0673d
commit
37fc574aa0
@ -1,3 +1,8 @@
|
||||
2004-01-23 David Carlton <carlton@kealia.com>
|
||||
|
||||
* gdb.cp/namespace.cc (C::ensureRefs): New.
|
||||
* gdb.cp/namespace1.cc (C::ensureOtherRefs): New.
|
||||
|
||||
2004-01-20 Nick Roberts <nick@nick.uklinux.net>
|
||||
|
||||
* gdb.mi/mi-stack.exp (test_stack_locals_listing): Test for
|
||||
|
@ -97,6 +97,13 @@ namespace C
|
||||
};
|
||||
};
|
||||
|
||||
void ensureRefs () {
|
||||
// NOTE (2004-04-23, carlton): This function is here only to make
|
||||
// sure that GCC 3.4 outputs debug info for these classes.
|
||||
static CClass *c = new CClass();
|
||||
static CClass::NestedClass *n = new CClass::NestedClass();
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
int cX = 6;
|
||||
|
@ -24,6 +24,12 @@ namespace C
|
||||
int z;
|
||||
};
|
||||
|
||||
void ensureOtherRefs () {
|
||||
// NOTE (2004-04-23, carlton): This function is here only to make
|
||||
// sure that GCC 3.4 outputs debug info for this class.
|
||||
static OtherFileClass *c = new OtherFileClass();
|
||||
}
|
||||
|
||||
namespace {
|
||||
int cXOtherFile = 29;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user