aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/27_io/basic_ostream/sentry
diff options
context:
space:
mode:
authorBrad Spencer <spencer@infointeractive.com>2003-09-26 20:20:55 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2003-09-26 20:20:55 +0000
commit2d07c3f562e68955ed7067f7145a1ca416a8dafd (patch)
tree47547608acf13c225bff810648f49b278589a0da /libstdc++-v3/testsuite/27_io/basic_ostream/sentry
parent6634a0e914af681099d147755f90ed4011a35809 (diff)
downloadgcc-2d07c3f562e68955ed7067f7145a1ca416a8dafd.zip
gcc-2d07c3f562e68955ed7067f7145a1ca416a8dafd.tar.gz
gcc-2d07c3f562e68955ed7067f7145a1ca416a8dafd.tar.bz2
10132-1.cc: Explicitly qualify exceptions.
2003-09-26 Brad Spencer <spencer@infointeractive.com> * testsuite/27_io/basic_filebuf/cons/wchar_t/10132-1.cc: Explicitly qualify exceptions. * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Same. * testsuite/27_io/basic_istream/sentry/char/3983-sstream.cc: Same. * testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same. * testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc: Same. From-SVN: r71832
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/basic_ostream/sentry')
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc11
-rw-r--r--libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc11
2 files changed, 8 insertions, 14 deletions
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc
index e3af42e3..c37c004 100644
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc
@@ -124,22 +124,19 @@ namespace std
// Sentry uses locale info, so have to try one formatted input/output.
void test03()
{
- using namespace std;
bool test __attribute__((unused)) = true;
// output streams
- basic_ofstream<unsigned char> ofs_uc;
-
+ std::basic_ofstream<unsigned char> ofs_uc;
try
{
bool b = true;
ofs_uc << b;
}
- catch (bad_cast& obj)
+ catch (std::bad_cast& obj)
{ }
- catch (exception& obj)
- { test = false; }
-
+ catch (std::exception& obj)
+ { test = false; }
VERIFY( test );
}
diff --git a/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc b/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc
index fe1a947..5ace232 100644
--- a/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc
+++ b/libstdc++-v3/testsuite/27_io/basic_ostream/sentry/char/3983-sstream.cc
@@ -124,22 +124,19 @@ namespace std
// Sentry uses locale info, so have to try one formatted input/output.
void test03()
{
- using namespace std;
bool test __attribute__((unused)) = true;
// output streams
- basic_ostringstream<unsigned char> oss_uc;
-
+ std::basic_ostringstream<unsigned char> oss_uc;
try
{
bool b = true;
oss_uc << b;
}
- catch (bad_cast& obj)
+ catch (std::bad_cast& obj)
{ }
- catch (exception& obj)
- { test = false; }
-
+ catch (std::exception& obj)
+ { test = false; }
VERIFY( test );
}