mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
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.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user