From e70d6e3ff58b9c8a2d72aaa64d7c4e09f8a3a445 Mon Sep 17 00:00:00 2001 From: David Carlton Date: Wed, 18 Sep 2002 18:48:43 +0000 Subject: 2002-09-18 David Carlton * 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. --- gdb/testsuite/gdb.c++/m-static.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gdb/testsuite/gdb.c++/m-static.cc') 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 gnu_obj_2 gnu_obj_3::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 test2(roman); gnu_obj_3 test3(greek); + gnu_obj_4 test4; - return 0; + return 0; // breakpoint: constructs-done } -- cgit v1.1