mirror of
https://github.com/boostorg/core.git
synced 2025-11-29 13:50:10 +01:00
Add tests for BOOST_CORE_STATIC_ASSERT
This commit is contained in:
14
test/static_assert_fail2.cpp
Normal file
14
test/static_assert_fail2.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2025 Peter Dimov
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// https://www.boost.org/LICENSE_1_0.txt
|
||||
|
||||
#include <boost/core/static_assert.hpp>
|
||||
|
||||
struct X
|
||||
{
|
||||
BOOST_CORE_STATIC_ASSERT( sizeof(char[2]) != 2 );
|
||||
};
|
||||
|
||||
int main()
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user