Commit 04d930e6 by Benjamin Kosnik Committed by Benjamin Kosnik

*.cc: Remove spaces, make sure testcases return zero.


2001-05-11   Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/*/*.cc: Remove spaces, make sure testcases return zero.
	* testsuite/config/default.exp: Update bugs email address.

From-SVN: r41997
parent 90e0c410
2001-05-11 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/*/*.cc: Remove spaces, make sure testcases return zero.
* testsuite/config/default.exp: Update bugs email address.
2001-05-11 Richard Henderson <rth@redhat.com> 2001-05-11 Richard Henderson <rth@redhat.com>
* libsupc++/eh_personality.cc: Include unwind-pe.h. Remove * libsupc++/eh_personality.cc: Include unwind-pe.h. Remove
...@@ -17,7 +22,6 @@ ...@@ -17,7 +22,6 @@
Change LDFLAGS to LIBS. Change LDFLAGS to LIBS.
Consistently name procedures libstdc++-XXX. Consistently name procedures libstdc++-XXX.
* testsuite/libstdc++.tests/tests.exp: Use new procedure names. * testsuite/libstdc++.tests/tests.exp: Use new procedure names.
* testsuite/config/default.exp: Kill spaces.
2001-05-08 Benjamin Kosnik <bkoz@fillmore.constant.com> 2001-05-08 Benjamin Kosnik <bkoz@fillmore.constant.com>
......
...@@ -125,11 +125,3 @@ int main(void) ...@@ -125,11 +125,3 @@ int main(void)
return 0; return 0;
} }
...@@ -22,14 +22,9 @@ ...@@ -22,14 +22,9 @@
#include <cstdio> #include <cstdio>
int main(void) int main(void)
{ {
// Make sure size_t is in namespace std // Make sure size_t is in namespace std
std::size_t i = 5; // { dg-do compile } std::size_t i = 5;
return 0; return 0;
} }
...@@ -32,7 +32,7 @@ void test01() ...@@ -32,7 +32,7 @@ void test01()
void test02() void test02()
{ {
// Make sure size_t is in namespace std // Make sure size_t is in namespace std
std::size_t i = 5; // { dg-do compile } std::size_t i = 5;
} }
int main() int main()
...@@ -41,6 +41,3 @@ int main() ...@@ -41,6 +41,3 @@ int main()
test02(); test02();
return 0; return 0;
} }
...@@ -26,11 +26,6 @@ ...@@ -26,11 +26,6 @@
int main(void) int main(void)
{ {
// Make sure size_t is in namespace std // Make sure size_t is in namespace std
// { dg-do compile }
std::size_t i = std::strlen("tibet shop/san francisco (415) 982-0326"); std::size_t i = std::strlen("tibet shop/san francisco (415) 982-0326");
return 0; return 0;
} }
...@@ -26,10 +26,6 @@ ...@@ -26,10 +26,6 @@
int main(void) int main(void)
{ {
// Make sure size_t is in namespace std // Make sure size_t is in namespace std
std::size_t i = 5; // { dg-do compile } std::size_t i = 5;
return 0; return 0;
} }
...@@ -26,6 +26,6 @@ ...@@ -26,6 +26,6 @@
int main(void) int main(void)
{ {
// Make sure size_t is in namespace std // Make sure size_t is in namespace std
std::size_t i = 5; // { dg-do compile } std::size_t i = 5;
return 0; return 0;
} }
...@@ -23,14 +23,10 @@ ...@@ -23,14 +23,10 @@
#if _GLIBCPP_USE_WCHAR_T #if _GLIBCPP_USE_WCHAR_T
#include <cwctype> #include <cwctype>
// Make sure wint_t is in namespace std // Make sure wint_t is in namespace std
std::wint_t i = 5; // { dg-do compile } std::wint_t i = 5;
#endif #endif
int main(void) int main(void)
{ {
return 0; return 0;
} }
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
// 17.4.1.2 Headers, fstream // 17.4.1.2 Headers, fstream
#include <fstream> // { dg-do compile } #include <fstream>
#include <debug_assert.h> #include <debug_assert.h>
...@@ -28,7 +28,3 @@ int main(void) ...@@ -28,7 +28,3 @@ int main(void)
{ {
return 0; return 0;
} }
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
// 17.4.1.2 Headers, iomanip // 17.4.1.2 Headers, iomanip
#include <iomanip> // { dg-do compile } #include <iomanip>
#include <debug_assert.h> #include <debug_assert.h>
...@@ -28,7 +28,3 @@ int main(void) ...@@ -28,7 +28,3 @@ int main(void)
{ {
return 0; return 0;
} }
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
// 17.4.1.2 Headers, ios // 17.4.1.2 Headers, ios
#include <ios> // { dg-do compile } #include <ios>
#include <debug_assert.h> #include <debug_assert.h>
...@@ -28,7 +28,3 @@ int main(void) ...@@ -28,7 +28,3 @@ int main(void)
{ {
return 0; return 0;
} }
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
// 17.4.1.2 Headers, iosfwd // 17.4.1.2 Headers, iosfwd
#include <iosfwd> // { dg-do compile } #include <iosfwd>
#include <debug_assert.h> #include <debug_assert.h>
...@@ -28,7 +28,3 @@ int main(void) ...@@ -28,7 +28,3 @@ int main(void)
{ {
return 0; return 0;
} }
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
// 17.4.1.2 Headers, iostream // 17.4.1.2 Headers, iostream
#include <iostream> // { dg-do compile } #include <iostream>
#include <debug_assert.h> #include <debug_assert.h>
...@@ -28,7 +28,3 @@ int main(void) ...@@ -28,7 +28,3 @@ int main(void)
{ {
return 0; return 0;
} }
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
// 17.4.1.2 Headers, istream // 17.4.1.2 Headers, istream
#include <istream> // { dg-do compile } #include <istream>
#include <debug_assert.h> #include <debug_assert.h>
...@@ -28,7 +28,3 @@ int main(void) ...@@ -28,7 +28,3 @@ int main(void)
{ {
return 0; return 0;
} }
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
// 17.4.1.2 Headers, ostream // 17.4.1.2 Headers, ostream
#include <ostream> // { dg-do compile } #include <ostream>
#include <debug_assert.h> #include <debug_assert.h>
...@@ -28,7 +28,3 @@ int main(void) ...@@ -28,7 +28,3 @@ int main(void)
{ {
return 0; return 0;
} }
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
// 17.4.1.2 Headers, sstream // 17.4.1.2 Headers, sstream
#include <sstream> // { dg-do compile } #include <sstream>
#include <debug_assert.h> #include <debug_assert.h>
...@@ -28,7 +28,3 @@ int main(void) ...@@ -28,7 +28,3 @@ int main(void)
{ {
return 0; return 0;
} }
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
// 17.4.1.2 Headers, streambuf // 17.4.1.2 Headers, streambuf
#include <streambuf> // { dg-do compile } #include <streambuf>
#include <debug_assert.h> #include <debug_assert.h>
......
...@@ -80,4 +80,4 @@ ...@@ -80,4 +80,4 @@
#include <cwctype> #include <cwctype>
#endif #endif
int main() { } // { dg-do compile } int main() { return 0; }
...@@ -67,4 +67,4 @@ ...@@ -67,4 +67,4 @@
#include <wctype.h> #include <wctype.h>
#endif #endif
int main() { } // { dg-do compile } int main() { return 0; }
...@@ -67,4 +67,4 @@ ...@@ -67,4 +67,4 @@
#include <cwctype> #include <cwctype>
#endif #endif
int main() { } // { dg-do compile } int main() { return 0; }
...@@ -86,8 +86,3 @@ int main() ...@@ -86,8 +86,3 @@ int main()
return 0; return 0;
} }
...@@ -160,9 +160,5 @@ bool test01(void) ...@@ -160,9 +160,5 @@ bool test01(void)
int main() int main()
{ {
test01(); test01();
return 0;
} }
...@@ -89,7 +89,3 @@ int main() ...@@ -89,7 +89,3 @@ int main()
return 0; return 0;
} }
...@@ -175,5 +175,3 @@ int main() ...@@ -175,5 +175,3 @@ int main()
return 0; return 0;
} }
...@@ -200,9 +200,5 @@ int main() ...@@ -200,9 +200,5 @@ int main()
#if _GLIBCPP_USE_WCHAR_T #if _GLIBCPP_USE_WCHAR_T
test02(); test02();
#endif #endif
return 0;
} }
...@@ -135,9 +135,3 @@ main() ...@@ -135,9 +135,3 @@ main()
return 0; return 0;
} }
...@@ -180,12 +180,5 @@ int main() ...@@ -180,12 +180,5 @@ int main()
{ {
test01(); test01();
test02(); test02();
return 0;
} }
...@@ -89,12 +89,6 @@ bool test01(void) ...@@ -89,12 +89,6 @@ bool test01(void)
int main() int main()
{ {
test01(); test01();
return 0;
} }
...@@ -194,9 +194,5 @@ bool test01(void) ...@@ -194,9 +194,5 @@ bool test01(void)
int main() int main()
{ {
test01(); test01();
return 0;
} }
...@@ -190,9 +190,5 @@ int test01(void) ...@@ -190,9 +190,5 @@ int test01(void)
int main() int main()
{ {
test01(); test01();
return 0;
} }
...@@ -41,9 +41,9 @@ bool test01(void) ...@@ -41,9 +41,9 @@ bool test01(void)
csize_type npos = std::string::npos; csize_type npos = std::string::npos;
csize_type csz01, csz02; csize_type csz01, csz02;
const char str_lit01[] = "sailing grand traverse bay // { dg-warning "string literals" "" { xfail *-*-* } 45 }
from Elk Rapids to the point reminds me of miles"; const std::string str01("sailing grand traverse bay
const std::string str01(str_lit01); from Elk Rapids to the point reminds me of miles");
const std::string str02("sailing"); const std::string str02("sailing");
const std::string str03("grand"); const std::string str03("grand");
const std::string str04("traverse"); const std::string str04("traverse");
...@@ -124,7 +124,7 @@ bool test01(void) ...@@ -124,7 +124,7 @@ bool test01(void)
getline(istrs02, str10); getline(istrs02, str10);
VERIFY( istrs02.fail() ); VERIFY( istrs02.fail() );
VERIFY( istrs02.eof() ); VERIFY( istrs02.eof() );
VERIFY( str10 == "\t from Elk Rapids to the point reminds me of miles" ); VERIFY( str10 =="\t from Elk Rapids to the point reminds me of miles" );
} }
catch(std::exception& fail) { catch(std::exception& fail) {
VERIFY( false ); // shouldn't throw VERIFY( false ); // shouldn't throw
...@@ -323,10 +323,3 @@ int main() ...@@ -323,10 +323,3 @@ int main()
test08(); test08();
return 0; return 0;
} }
...@@ -171,9 +171,5 @@ int main() ...@@ -171,9 +171,5 @@ int main()
{ {
test01(); test01();
test02(); test02();
return 0;
} }
...@@ -293,12 +293,8 @@ template<class charT, class traits, class Allocator> ...@@ -293,12 +293,8 @@ template<class charT, class traits, class Allocator>
return 0; return 0;
} }
int main() { int main()
{
test01(); test01();
return 0;
} }
...@@ -52,5 +52,5 @@ int test01(void) ...@@ -52,5 +52,5 @@ int test01(void)
int main() int main()
{ {
test01(); test01();
return 0;
} }
...@@ -86,9 +86,5 @@ bool test01(void) ...@@ -86,9 +86,5 @@ bool test01(void)
int main() int main()
{ {
test01(); test01();
return 0;
} }
...@@ -121,4 +121,5 @@ int main() ...@@ -121,4 +121,5 @@ int main()
test01(); test01();
test02(); test02();
test03(); test03();
return 0;
} }
...@@ -76,9 +76,5 @@ bool test01(void) ...@@ -76,9 +76,5 @@ bool test01(void)
int main() int main()
{ {
test01(); test01();
return 0;
} }
...@@ -85,6 +85,3 @@ int main () ...@@ -85,6 +85,3 @@ int main ()
return 0; return 0;
} }
...@@ -237,6 +237,3 @@ int main () ...@@ -237,6 +237,3 @@ int main ()
return 0; return 0;
} }
...@@ -130,6 +130,3 @@ int main () ...@@ -130,6 +130,3 @@ int main ()
return 0; return 0;
} }
...@@ -121,6 +121,3 @@ int main () ...@@ -121,6 +121,3 @@ int main ()
return 0; return 0;
} }
...@@ -172,5 +172,3 @@ int main() { ...@@ -172,5 +172,3 @@ int main() {
test01(); test01();
return 0; return 0;
} }
...@@ -105,5 +105,3 @@ int main() { ...@@ -105,5 +105,3 @@ int main() {
#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */ #endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
return 0; return 0;
} }
...@@ -239,11 +239,3 @@ int main () ...@@ -239,11 +239,3 @@ int main ()
return 0; return 0;
} }
...@@ -135,6 +135,3 @@ int main() ...@@ -135,6 +135,3 @@ int main()
test02(); test02();
return 0; return 0;
} }
...@@ -68,6 +68,3 @@ int main() ...@@ -68,6 +68,3 @@ int main()
return 0; return 0;
} }
...@@ -88,4 +88,3 @@ int main() ...@@ -88,4 +88,3 @@ int main()
return 0; return 0;
} }
...@@ -70,4 +70,3 @@ int main () ...@@ -70,4 +70,3 @@ int main ()
69 9 69 9
69 4 69 4
*/ */
...@@ -64,6 +64,3 @@ int main() ...@@ -64,6 +64,3 @@ int main()
test02(); test02();
return 0; return 0;
} }
...@@ -66,6 +66,3 @@ int main() ...@@ -66,6 +66,3 @@ int main()
return 0; return 0;
} }
...@@ -63,7 +63,3 @@ int main() ...@@ -63,7 +63,3 @@ int main()
return 0; return 0;
} }
...@@ -158,5 +158,3 @@ int main() ...@@ -158,5 +158,3 @@ int main()
return 0; return 0;
} }
...@@ -594,6 +594,5 @@ main(int argc, char **argv) ...@@ -594,6 +594,5 @@ main(int argc, char **argv)
assert (failures == 0); assert (failures == 0);
#endif #endif
return failures ? 1 : 0; return 0;
} }
...@@ -96,8 +96,3 @@ int main() ...@@ -96,8 +96,3 @@ int main()
return 0; return 0;
} }
...@@ -43,6 +43,3 @@ int main() ...@@ -43,6 +43,3 @@ int main()
{ {
return 0; return 0;
} }
...@@ -44,6 +44,3 @@ int main() ...@@ -44,6 +44,3 @@ int main()
test01(); test01();
return 0; return 0;
} }
...@@ -33,4 +33,5 @@ int main() ...@@ -33,4 +33,5 @@ int main()
d = (a + 2.0* b ); d = (a + 2.0* b );
std::cout << "d[4] = " << d[4] << std::endl; std::cout << "d[4] = " << d[4] << std::endl;
return 0;
} }
...@@ -34,4 +34,3 @@ int main() ...@@ -34,4 +34,3 @@ int main()
return 0; return 0;
} }
...@@ -69,4 +69,3 @@ main() ...@@ -69,4 +69,3 @@ main()
test04(); test04();
return 0; return 0;
} }
...@@ -96,4 +96,3 @@ main() ...@@ -96,4 +96,3 @@ main()
testall<long double>(); testall<long double>();
return 0; return 0;
} }
...@@ -41,6 +41,3 @@ int main() ...@@ -41,6 +41,3 @@ int main()
return 0; return 0;
} }
...@@ -586,13 +586,3 @@ int main() ...@@ -586,13 +586,3 @@ int main()
// more surf!!! // more surf!!!
...@@ -85,7 +85,3 @@ main() ...@@ -85,7 +85,3 @@ main()
test_01(); test_01();
return 0; return 0;
} }
...@@ -171,7 +171,3 @@ int main() { ...@@ -171,7 +171,3 @@ int main() {
test03(); test03();
return 0; return 0;
} }
...@@ -78,4 +78,5 @@ int main() ...@@ -78,4 +78,5 @@ int main()
{ {
test00(); test00();
test01(); test01();
return 0;
} }
...@@ -66,7 +66,3 @@ int main(void) ...@@ -66,7 +66,3 @@ int main(void)
return 0; return 0;
} }
...@@ -83,5 +83,3 @@ int main(void) ...@@ -83,5 +83,3 @@ int main(void)
test02(); test02();
return 0; return 0;
} }
...@@ -48,7 +48,3 @@ int main(void) ...@@ -48,7 +48,3 @@ int main(void)
return 0; return 0;
} }
...@@ -89,4 +89,3 @@ int main() { ...@@ -89,4 +89,3 @@ int main() {
test01(); test01();
return 0; return 0;
} }
...@@ -146,5 +146,3 @@ int main() { ...@@ -146,5 +146,3 @@ int main() {
test02(); test02();
return 0; return 0;
} }
...@@ -55,5 +55,3 @@ namespace test { ...@@ -55,5 +55,3 @@ namespace test {
int main() { int main() {
return 0; return 0;
} }
...@@ -529,21 +529,4 @@ int main() ...@@ -529,21 +529,4 @@ int main()
return 0; return 0;
} }
// paul miller was right on with riddim warfare! // paul miller was right on with riddim warfare!
...@@ -227,4 +227,3 @@ int main() ...@@ -227,4 +227,3 @@ int main()
return 0; return 0;
} }
...@@ -206,8 +206,3 @@ int main() ...@@ -206,8 +206,3 @@ int main()
test03(); test03();
return 0; return 0;
} }
...@@ -83,9 +83,5 @@ bool test01(void) ...@@ -83,9 +83,5 @@ bool test01(void)
int main() int main()
{ {
test01(); test01();
return 0;
} }
...@@ -293,11 +293,3 @@ int main() ...@@ -293,11 +293,3 @@ int main()
test05(); test05();
return 0; return 0;
} }
...@@ -85,16 +85,3 @@ int main() ...@@ -85,16 +85,3 @@ int main()
test02(); test02();
return 0; return 0;
} }
...@@ -142,6 +142,7 @@ test02() ...@@ -142,6 +142,7 @@ test02()
typedef std::char_traits<char> traits_type; typedef std::char_traits<char> traits_type;
bool test = true; bool test = true;
// { dg-warning "string literals" "" { xfail *-*-* } 146 }
const char str_lit01[] = " sun*ra const char str_lit01[] = " sun*ra
and his myth science arkestra present and his myth science arkestra present
angles and demons @ play angles and demons @ play
...@@ -200,6 +201,7 @@ test02() ...@@ -200,6 +201,7 @@ test02()
VERIFY( is_04.gcount() == 64 ); VERIFY( is_04.gcount() == 64 );
VERIFY( state1 != state2 ); VERIFY( state1 != state2 );
VERIFY( state2 == statefail ); VERIFY( state2 == statefail );
// { dg-warning "string literals" "" { xfail *-*-* } 205 }
VERIFY( !traits_type::compare(" and his myth science arkestra presen", carray1, 65) ); VERIFY( !traits_type::compare(" and his myth science arkestra presen", carray1, 65) );
is_04.clear(); is_04.clear();
...@@ -232,6 +234,7 @@ test03() ...@@ -232,6 +234,7 @@ test03()
typedef std::char_traits<char> traits_type; typedef std::char_traits<char> traits_type;
bool test = true; bool test = true;
// { dg-warning "string literals" "" { xfail *-*-* } 238 }
const char str_lit01[] = " sun*ra const char str_lit01[] = " sun*ra
& his arkestra, featuring john gilmore: & his arkestra, featuring john gilmore:
jazz in silhouette: images and forecasts of tomorrow"; jazz in silhouette: images and forecasts of tomorrow";
...@@ -357,6 +360,7 @@ test04() ...@@ -357,6 +360,7 @@ test04()
int int
test05() test05()
{ {
// { dg-warning "string literals" "" { xfail *-*-* } 364 }
const char* charray = " const char* charray = "
a a
aa aa
...@@ -491,12 +495,3 @@ main() ...@@ -491,12 +495,3 @@ main()
return 0; return 0;
} }
...@@ -80,5 +80,3 @@ int main() ...@@ -80,5 +80,3 @@ int main()
test01(); test01();
return 0; return 0;
} }
...@@ -122,4 +122,3 @@ main() ...@@ -122,4 +122,3 @@ main()
// test03(); // test03();
return 0; return 0;
} }
...@@ -78,4 +78,5 @@ int main() ...@@ -78,4 +78,5 @@ int main()
{ {
test00(); test00();
test01(); test01();
return 0;
} }
...@@ -46,4 +46,3 @@ namespace test { ...@@ -46,4 +46,3 @@ namespace test {
int main() { int main() {
return 0; return 0;
} }
...@@ -318,13 +318,3 @@ main() ...@@ -318,13 +318,3 @@ main()
#endif #endif
return 0; return 0;
} }
...@@ -266,4 +266,3 @@ int main() ...@@ -266,4 +266,3 @@ int main()
test06(); test06();
return 0; return 0;
} }
...@@ -143,4 +143,3 @@ main() ...@@ -143,4 +143,3 @@ main()
return 0; return 0;
} }
...@@ -121,9 +121,5 @@ bool test02() ...@@ -121,9 +121,5 @@ bool test02()
int main() int main()
{ {
test01(); test01();
return 0;
} }
...@@ -292,11 +292,3 @@ int main() ...@@ -292,11 +292,3 @@ int main()
// test05(); // test05();
return 0; return 0;
} }
...@@ -50,4 +50,5 @@ void test01() ...@@ -50,4 +50,5 @@ void test01()
int main() int main()
{ {
test01(); test01();
return 0;
} }
...@@ -347,16 +347,3 @@ int main() ...@@ -347,16 +347,3 @@ int main()
test05(); test05();
return 0; return 0;
} }
...@@ -441,10 +441,3 @@ int main() { ...@@ -441,10 +441,3 @@ int main() {
// more candy!!! // more candy!!!
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
// invalidate any other reasons why the executable file might be covered by // invalidate any other reasons why the executable file might be covered by
// the GNU General Public License. // the GNU General Public License.
#include <vector> #include <vector>
#include <string> #include <string>
#include <sstream> #include <sstream>
...@@ -49,6 +48,7 @@ test01() ...@@ -49,6 +48,7 @@ test01()
VERIFY( len == 0 ); VERIFY( len == 0 );
// Full string sanity check. // Full string sanity check.
// { dg-warning "string literals" "" { xfail *-*-* } 52 }
std::string str02("these golden days, i spend waiting for you:\n std::string str02("these golden days, i spend waiting for you:\n
Betty Carter on Verve with I'm Yours and You're Mine."); Betty Carter on Verve with I'm Yours and You're Mine.");
__i_start = str02.begin(); __i_start = str02.begin();
...@@ -159,14 +159,3 @@ main() ...@@ -159,14 +159,3 @@ main()
return 0; return 0;
} }
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Please email any bugs, comments, and/or additions to this file to: # Please email any bugs, comments, and/or additions to this file to:
# bug-gcc@prep.ai.mit.edu # libstdc++@gcc.gnu.org
load_lib "standard.exp" load_lib "standard.exp"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment