Author: sebor
Date: Tue Apr 3 15:01:35 2007
New Revision: 525299
URL: http://svn.apache.org/viewvc?view=rev&rev=525299
Log:
2007-04-03 Martin Sebor <[EMAIL PROTECTED]>
* 21.string.find.last.of.cpp (TEST): Replaced NPOS with -1 to silence
(the justified) gcc warning: overflow in implicit constant conversion.
Modified:
incubator/stdcxx/trunk/tests/strings/21.string.find.last.of.cpp
Modified: incubator/stdcxx/trunk/tests/strings/21.string.find.last.of.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/strings/21.string.find.last.of.cpp?view=diff&rev=525299&r1=525298&r2=525299
==============================================================================
--- incubator/stdcxx/trunk/tests/strings/21.string.find.last.of.cpp (original)
+++ incubator/stdcxx/trunk/tests/strings/21.string.find.last.of.cpp Tue Apr 3
15:01:35 2007
@@ -207,10 +207,20 @@
cptr_size_test_cases [] = {
#undef TEST
-#define TEST(str, arg, off, res) \
- { __LINE__, off, NPOS, -1, -1, -1, \
- str, sizeof str - 1, arg, \
- sizeof arg - 1, 0, res, 0 \
+#define TEST(str, arg, off, res) { \
+ /* int .line = */ __LINE__, \
+ /* int .off = */ off, \
+ /* int .size = */ -1, \
+ /* int .off2 = */ -1, \
+ /* int .size2 = */ -1, \
+ /* int .val = */ -1, \
+ /* const char* .str = */ str, \
+ /* size_t .str_len = */ sizeof str - 1, \
+ /* const char* .arg = */ arg, \
+ /* size_t .arg_len = */ sizeof arg - 1, \
+ /* const char* .res = */ 0, \
+ /* size_t .nres = */ res, \
+ /* int .bthrow = */ 0 \
}
// +-------------------------------------- controlled sequence