]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/23_containers/set/invalidation/2.cc
1.cc: Test result string.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / set / invalidation / 2.cc
index 64b5fc37895c1b6da586cf3b1ed89bd0b08a00f8..0978b815f5b75c0614190ff37b3681a5703a839b 100644 (file)
 using __gnu_debug::set;
 using std::advance;
 
-bool test = true;
-
 // Erase
 void test02()
 {
+  bool test __attribute__((unused)) = true;
+
   set<int> v;
   for (int i = 0; i < 20; ++i)
     v.insert(i);
@@ -72,5 +72,5 @@ template class __gnu_cxx::__mt_alloc<std::_Rb_tree_node<int> >;
 int main()
 {
   test02();
-  return !test;
+  return 0;
 }