From 88c87359fa92a1869402a4f0b45517e071570174 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Sun, 17 Oct 2010 14:49:11 +0000 Subject: re PR libstdc++/43554 (profile-mode version of forward_list missing) 2010-10-17 Paolo Carlini PR libstdc++/43554 * include/profile/forward_list: New file. * include/std/forward_list: Include . * include/Makefile.am: Add. * testsuite/23_containers/forward_list/capacity/1.cc: Adjust. * include/Makefile.in: Regenerate. From-SVN: r165587 --- .../testsuite/23_containers/forward_list/capacity/1.cc | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'libstdc++-v3/testsuite/23_containers') diff --git a/libstdc++-v3/testsuite/23_containers/forward_list/capacity/1.cc b/libstdc++-v3/testsuite/23_containers/forward_list/capacity/1.cc index 5bb9fb98b40..fec4fff46ac 100644 --- a/libstdc++-v3/testsuite/23_containers/forward_list/capacity/1.cc +++ b/libstdc++-v3/testsuite/23_containers/forward_list/capacity/1.cc @@ -22,13 +22,11 @@ #include #include -bool test __attribute__((unused)) = true; - -// This test verifies the following. -// void test01() { + bool test __attribute__((unused)) = true; + std::forward_list fld; VERIFY(fld.empty() == true); @@ -38,10 +36,10 @@ test01() fld.resize(0); VERIFY(fld.empty() == true); -#ifndef _GLIBCXX_DEBUG - using std::_Fwd_list_node; -#else +#if defined(_GLIBCXX_DEBUG) || defined(_GLIBCXX_PROFILE) using std::_GLIBCXX_STD_D::_Fwd_list_node; +#else + using std::_Fwd_list_node; #endif VERIFY( (fld.max_size() -- cgit v1.2.1