aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/thread/pthread7-rope.cc
diff options
context:
space:
mode:
author(no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-08 20:22:32 +0000
committer(no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-08 20:22:32 +0000
commitc257e4c69fa5749f65d4348aa34cf2b1dd888bbb (patch)
tree7878a3c9dbdf10b66a75b7e495d5a887cce31de8 /libstdc++-v3/testsuite/thread/pthread7-rope.cc
parentb88baab8dc533a28fc64d5addedc490222540398 (diff)
This commit was manufactured by cvs2svn to create tagimmuse-rewrite-start
'immuse-rewrite-start'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/immuse-rewrite-start@88792 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/testsuite/thread/pthread7-rope.cc')
-rw-r--r--libstdc++-v3/testsuite/thread/pthread7-rope.cc14
1 files changed, 5 insertions, 9 deletions
diff --git a/libstdc++-v3/testsuite/thread/pthread7-rope.cc b/libstdc++-v3/testsuite/thread/pthread7-rope.cc
index 2f401344ff4..307973c202d 100644
--- a/libstdc++-v3/testsuite/thread/pthread7-rope.cc
+++ b/libstdc++-v3/testsuite/thread/pthread7-rope.cc
@@ -29,13 +29,12 @@
// Do not include <pthread.h> explicitly; if threads are properly
// configured for the port, then it is picked up free from STL headers.
-#if __GTHREADS
-
const int max_thread_count = 4;
const int max_loop_count = 10000;
-__gnu_cxx::crope foo2;
-__gnu_cxx::crope foo4;
+typedef __gnu_cxx::rope<char, std::allocator<char> > rope_type;
+rope_type foo2;
+rope_type foo4;
void* thread_main(void *)
{
@@ -73,7 +72,7 @@ main()
pthread_setconcurrency (max_thread_count);
#endif
- __gnu_cxx::crope foo;
+ rope_type foo;
foo += "bar";
foo += "baz";
foo += "bongle";
@@ -89,7 +88,7 @@ main()
VERIFY( !std::strcmp (data2, "bar2baz2bongle2") );
}
- __gnu_cxx::crope foo3 ("hello");
+ rope_type foo3 ("hello");
const char* data3 = foo3.c_str();
VERIFY( !std::strcmp (data3, "hello") );
@@ -112,6 +111,3 @@ main()
return 0;
}
-#else
-int main (void) {}
-#endif