]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/27_io/basic_istream/extractors_arithmetic/wchar_t/12.cc
12790-1.cc: Remove 'test' variables.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 27_io / basic_istream / extractors_arithmetic / wchar_t / 12.cc
index 1bb2159f873edc6f42da500ec6106b8533064a45..ec6a998c7272dd9a718385df5c95a780c1dc20fb 100644 (file)
 // libstdc++/3720
 // excess input should not cause a core dump
 template<typename T>
-bool test12_aux(bool integer_type)
+void test12_aux(bool integer_type)
 {
-  bool test __attribute__((unused)) = true;
-  
   int digits_overflow;
   if (integer_type)
     // This many digits will overflow integer types in base 10.
@@ -48,19 +46,16 @@ bool test12_aux(bool integer_type)
   T t;
   is >> t;
   VERIFY( is.fail() );
-  return test;
 }
 
-bool test12()
+void test12()
 {
-  bool test __attribute__((unused)) = true;
-  VERIFY( test12_aux<short>(true) );
-  VERIFY( test12_aux<int>(true) );
-  VERIFY( test12_aux<long>(true) );
-  VERIFY( test12_aux<float>(false) );
-  VERIFY( test12_aux<double>(false) );
-  VERIFY( test12_aux<long double>(false) );
-  return test;
+  test12_aux<short>(true);
+  test12_aux<int>(true);
+  test12_aux<long>(true);
+  test12_aux<float>(false);
+  test12_aux<double>(false);
+  test12_aux<long double>(false);
 }
 
 int main()