aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.c++/m-static.cc
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2002-09-18 18:48:43 +0000
committerDavid Carlton <carlton@bactrian.org>2002-09-18 18:48:43 +0000
commite70d6e3ff58b9c8a2d72aaa64d7c4e09f8a3a445 (patch)
treed2d0ecc5d9f673f062dd4d57cb73f4a6beaa4bd7 /gdb/testsuite/gdb.c++/m-static.cc
parenteb9443807ab7d604076d06ce5cf902f0fdf21a7e (diff)
downloadbinutils-e70d6e3ff58b9c8a2d72aaa64d7c4e09f8a3a445.zip
binutils-e70d6e3ff58b9c8a2d72aaa64d7c4e09f8a3a445.tar.gz
binutils-e70d6e3ff58b9c8a2d72aaa64d7c4e09f8a3a445.tar.bz2
2002-09-18 David Carlton <carlton@math.stanford.edu>
* gdb.c++/m-static.exp: Remove breakpoints depending on line numbers, and replace them by a single breakpoint after the constructors are all finished. Add test 4. * gdb.c++/m-static.cc: Add test 4. * gdb.c++/m-static.h: New file. * gdb.c++/m-static1.cc: New file. * gdb.c++/printmethod.exp: New file. * gdb.c++/printmethod.cc: New file. * gdb.c++/pr-574.exp: New file. * gdb.c++/pr-574.cc: New file.
Diffstat (limited to 'gdb/testsuite/gdb.c++/m-static.cc')
-rw-r--r--gdb/testsuite/gdb.c++/m-static.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.c++/m-static.cc b/gdb/testsuite/gdb.c++/m-static.cc
index 2433801..ae14848 100644
--- a/gdb/testsuite/gdb.c++/m-static.cc
+++ b/gdb/testsuite/gdb.c++/m-static.cc
@@ -53,6 +53,10 @@ namespace __gnu_test
template<typename T>
gnu_obj_2<int> gnu_obj_3<T>::data(etruscan);
+
+ // 2002-08-16
+ // Test four.
+#include "m-static.h"
}
// instantiate templates explicitly so their static members will exist
@@ -67,6 +71,7 @@ int main()
gnu_obj_1 test1(egyptian, 4589);
gnu_obj_2<long> test2(roman);
gnu_obj_3<long> test3(greek);
+ gnu_obj_4 test4;
- return 0;
+ return 0; // breakpoint: constructs-done
}