Commit 57616df1 by Benjamin Kosnik Committed by Benjamin Kosnik

13189.cc: Guard for __enc_traits.




2003-12-06  Benjamin Kosnik  <bkoz@redhat.com>

	* testsuite/ext/enc_filebuf/char/13189.cc: Guard for __enc_traits.
	* testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.

From-SVN: r74380
parent e80213d2
2003-12-06 Benjamin Kosnik <bkoz@redhat.com> 2003-12-06 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/ext/enc_filebuf/char/13189.cc: Guard for __enc_traits.
* testsuite/ext/enc_filebuf/wchar_t/13189.cc: Same.
2003-12-06 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/11691 PR libstdc++/11691
* include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf): * include/ext/stdio_filebuf.h (stdio_filebuf::stdio_filebuf):
Remove __del argument to file descriptor constructor. Remove __del argument to file descriptor constructor.
......
...@@ -16,13 +16,14 @@ ...@@ -16,13 +16,14 @@
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA. // USA.
#ifdef _GLIBCXX_USE___ENC_TRAITS
#include <ext/enc_filebuf.h> #include <ext/enc_filebuf.h>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
int main() void test01()
{ {
using namespace std; using namespace std;
typedef __enc_traits state_type; typedef __enc_traits state_type;
typedef char char_type; typedef char char_type;
typedef __gnu_cxx::enc_filebuf<char_type> filebuf_type; typedef __gnu_cxx::enc_filebuf<char_type> filebuf_type;
...@@ -46,5 +47,14 @@ int main() ...@@ -46,5 +47,14 @@ int main()
{ {
VERIFY( false ); VERIFY( false );
} }
return 0; }
#else
void test01() { }
#endif
int main()
{
test01();
return 0;
} }
...@@ -16,13 +16,14 @@ ...@@ -16,13 +16,14 @@
// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA. // USA.
#ifdef _GLIBCXX_USE___ENC_TRAITS
#include <ext/enc_filebuf.h> #include <ext/enc_filebuf.h>
#include <testsuite_hooks.h> #include <testsuite_hooks.h>
int main() void test01()
{ {
using namespace std; using namespace std;
typedef __enc_traits state_type; typedef __enc_traits state_type;
typedef wchar_t char_type; typedef wchar_t char_type;
typedef __gnu_cxx::enc_filebuf<char_type> filebuf_type; typedef __gnu_cxx::enc_filebuf<char_type> filebuf_type;
...@@ -46,5 +47,14 @@ int main() ...@@ -46,5 +47,14 @@ int main()
{ {
VERIFY( false ); VERIFY( false );
} }
return 0; }
#else
void test01() { }
#endif
int main()
{
test01();
return 0;
} }
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