1// Negative test for boost/core/bit.hpp (bit_width)
2//
3// Copyright 2022 Peter Dimov
4// Distributed under the Boost Software License, Version 1.0.
5// https://www.boost.org/LICENSE_1_0.txt
6
7#include <boost/core/bit.hpp>
8
9int main()
10{
11 // should fail, because 0 is a signed integral type
12 return boost::core::bit_width( x: 0 );
13}
14

source code of boost/libs/core/test/bit_width_fail.cpp