]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/25_algorithms/rotate.cc
locale_facets.tcc: Tweak to avoid warnings.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 25_algorithms / rotate.cc
index 5102a649fdc16ba6d23fe9c3ff7b1309fda8fd40..2c0487706ea82cf23729ece143407fc68838affd 100644 (file)
@@ -22,7 +22,7 @@
 #include <testsuite_hooks.h>
 #include <list>
 
-bool test = true;
+bool test __attribute__((unused)) = true;
 
 int A[] = {1, 2, 3, 4, 5, 6, 7};
 int B[] = {2, 3, 4, 5, 6, 7, 1};
@@ -72,9 +72,9 @@ test03()
 }
 
 int
-main(int argc, char* argv[])
+main()
 {
-    test02();
-    test03();
-    return !test;
+  test02();
+  test03();
+  return 0;
 }