diff options
author | Daniel Jacobowitz <drow@false.org> | 2001-12-07 21:58:19 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2001-12-07 21:58:19 +0000 |
commit | af890c52921261d004ea69f40d1e59d98eb5f311 (patch) | |
tree | 238e5bb9996fd8b00b80e1d63a741644058f90ff /gdb/testsuite/gdb.c++/misc.cc | |
parent | 8032bf31ffa06609035efb3a8bc00f89b6e83d7b (diff) | |
download | gdb-af890c52921261d004ea69f40d1e59d98eb5f311.zip gdb-af890c52921261d004ea69f40d1e59d98eb5f311.tar.gz gdb-af890c52921261d004ea69f40d1e59d98eb5f311.tar.bz2 |
* gdb.c++/classes.exp: Add test for static member function.
* gdb.c++/misc.cc: Add class with static member function.
Diffstat (limited to 'gdb/testsuite/gdb.c++/misc.cc')
-rw-r--r-- | gdb/testsuite/gdb.c++/misc.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.c++/misc.cc b/gdb/testsuite/gdb.c++/misc.cc index caa5451..286c02b 100644 --- a/gdb/testsuite/gdb.c++/misc.cc +++ b/gdb/testsuite/gdb.c++/misc.cc @@ -269,6 +269,14 @@ void inheritance1 (void) inheritance2 (); } +// ======================== static member functions ===================== + +class Static { +public: + static void ii(int, int); +}; +void Static::ii (int, int) { } + // ======================== virtual base classes========================= class vA { |