Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / histogram / test / check_cmake_version.cpp
index 2fd4648..160db58 100644 (file)
@@ -3,7 +3,6 @@
 // Copyright 2018 Peter Dimov
 //
 // Distributed under the Boost Software License, Version 1.0.
-//
 // See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt
 
 #include <boost/version.hpp>
 #include <cstdio>
 
-int main( int ac, char const* av[] )
-{
-    BOOST_TEST_EQ( ac, 2 );
+int main(int ac, char const* av[]) {
+  BOOST_TEST_EQ(ac, 2);
 
-    if( ac >= 2 )
-    {
-        char version[ 64 ];
-        std::sprintf( version, "%d.%d.%d", BOOST_VERSION / 100000, BOOST_VERSION / 100 % 1000, BOOST_VERSION % 100 );
+  if (ac >= 2) {
+    char version[64];
+    std::sprintf(version, "%d.%d.%d", BOOST_VERSION / 100000, BOOST_VERSION / 100 % 1000,
+                 BOOST_VERSION % 100);
 
-        BOOST_TEST_CSTR_EQ( av[1], version );
-    }
+    BOOST_TEST_CSTR_EQ(av[1], version);
+  }
 
-    return boost::report_errors();
+  return boost::report_errors();
 }