mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-04 01:04:26 +08:00
* tstring.cc (identitytest): s/remove/erase/.
From-SVN: r15886
This commit is contained in:
parent
da8c445d07
commit
38bab5d4c6
@ -1,3 +1,7 @@
|
||||
Fri Oct 10 00:40:31 1997 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
||||
* tstring.cc (identitytest): s/remove/erase/.
|
||||
|
||||
Thu Sep 25 19:48:22 1997 Jason Merrill <jason@yorick.cygnus.com>
|
||||
|
||||
* tstring.cc: Add some tests for the member templates.
|
||||
|
@ -177,7 +177,7 @@ void identitytest(string a, string b)
|
||||
|
||||
assert((a + b + a) == (a + (b + a)));
|
||||
|
||||
x.remove (x.rfind (b));
|
||||
x.erase (x.rfind (b));
|
||||
assert(x == a);
|
||||
|
||||
y.replace (0, y.rfind (b), b);
|
||||
|
Loading…
Reference in New Issue
Block a user