]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/21_strings/basic_string/modifiers/insert/wchar_t/2.cc
testsuite_hooks.h: Rewrite VERIFY in terms of __builtin_printf and __builtin_abort.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 21_strings / basic_string / modifiers / insert / wchar_t / 2.cc
index fc9ee9193a7de71d98c04066662da5983cf49aaf..bbb7de2b10ef5a59f68dab737e019f23453bcde7 100644 (file)
 //   wstring& insert(size_type __p, const wchar_t* s, size_type n);
 //   wstring& insert(size_type __p, const wchar_t* s);
 // but now s points inside the _Rep
-int test02(void)
+void test02(void)
 {
-  bool test __attribute__((unused)) = true;
-
   std::wstring str01;
   const wchar_t* title = L"Everything was beautiful, and nothing hurt";
   // Increasing size: str01 is reallocated every time.
@@ -72,7 +70,6 @@ int test02(void)
   str01.insert(0, str01.c_str());
   VERIFY( str01 == L"Everything was beautiful, and nothing hurt"
          L"Everything was beautiful, and nothing hurt");
-  return test;
 }
 
 int main()