aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorBenjamin Kosnik <bkoz@redhat.com>2004-01-17 00:51:35 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2004-01-17 00:51:35 +0000
commitd517f626e1d4a6c079f9ca3bdd09886a6c6785e3 (patch)
treea7cb6b527cc22268bbabfcb5757e34639a9c214e /libstdc++-v3
parent73e61092e104b922e0f83f63fe988795cebe46bf (diff)
downloadgcc-d517f626e1d4a6c079f9ca3bdd09886a6c6785e3.zip
gcc-d517f626e1d4a6c079f9ca3bdd09886a6c6785e3.tar.gz
gcc-d517f626e1d4a6c079f9ca3bdd09886a6c6785e3.tar.bz2
13189.cc: Fix guards.
2004-01-16 Benjamin Kosnik <bkoz@redhat.com> * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards. * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same. From-SVN: r76017
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/testsuite/ext/enc_filebuf/char/13189.cc10
-rw-r--r--libstdc++-v3/testsuite/ext/enc_filebuf/wchar_t/13189.cc10
3 files changed, 13 insertions, 12 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 9e45eb0..c4fb706 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2004-01-16 Benjamin Kosnik <bkoz@redhat.com>
+
+ * testsuite/ext/enc_filebuf/char/13189.cc: Fix guards.
+ * testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
+
2004-01-16 Danny Smith <dannysmith@users.sourceforge.net>
* testsuite/testsuite_hooks.cc (try_mkfifo): Avoid calling
diff --git a/libstdc++-v3/testsuite/ext/enc_filebuf/char/13189.cc b/libstdc++-v3/testsuite/ext/enc_filebuf/char/13189.cc
index f4c3fe2..c853ecb 100644
--- a/libstdc++-v3/testsuite/ext/enc_filebuf/char/13189.cc
+++ b/libstdc++-v3/testsuite/ext/enc_filebuf/char/13189.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2003 Free Software Foundation
+// Copyright (C) 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -17,12 +17,13 @@
// USA.
#ifdef _GLIBCXX_USE___ENC_TRAITS
-
#include <ext/enc_filebuf.h>
+#endif
#include <testsuite_hooks.h>
void test01()
{
+#ifdef _GLIBCXX_USE___ENC_TRAITS
using namespace std;
typedef __enc_traits state_type;
typedef char char_type;
@@ -47,11 +48,8 @@ void test01()
{
VERIFY( false );
}
-}
-
-#else
-void test01() { }
#endif
+}
int main()
{
diff --git a/libstdc++-v3/testsuite/ext/enc_filebuf/wchar_t/13189.cc b/libstdc++-v3/testsuite/ext/enc_filebuf/wchar_t/13189.cc
index 0fd9b0d..1e5a933 100644
--- a/libstdc++-v3/testsuite/ext/enc_filebuf/wchar_t/13189.cc
+++ b/libstdc++-v3/testsuite/ext/enc_filebuf/wchar_t/13189.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2003 Free Software Foundation
+// Copyright (C) 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -17,12 +17,13 @@
// USA.
#ifdef _GLIBCXX_USE___ENC_TRAITS
-
#include <ext/enc_filebuf.h>
+#endif
#include <testsuite_hooks.h>
void test01()
{
+#ifdef _GLIBCXX_USE___ENC_TRAITS
using namespace std;
typedef __enc_traits state_type;
typedef wchar_t char_type;
@@ -47,11 +48,8 @@ void test01()
{
VERIFY( false );
}
-}
-
-#else
-void test01() { }
#endif
+}
int main()
{