-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for dynamic allocated cpp_int
- Loading branch information
Showing
7 changed files
with
565 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright John Maddock 2025. | ||
// Use, modification and distribution are subject to 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 <memory> | ||
|
||
|
||
#if !defined(__cpp_constexpr_dynamic_alloc) | ||
# error "__cpp_constexpr_dynamic_alloc is not defined" | ||
|
||
#elif __cpp_constexpr_dynamic_alloc < 201907 | ||
# error "__cpp_constexpr_dynamic_alloc is defined with value < 201907" | ||
|
||
#elif !defined(__cpp_lib_constexpr_dynamic_alloc) | ||
# error "__cpp_lib_constexpr_dynamic_alloc is not defined" | ||
|
||
#elif __cpp_lib_constexpr_dynamic_alloc < 201907 | ||
# error "__cpp_lib_constexpr_dynamic_alloc is defined with value < 201907" | ||
#endif | ||
|
||
int main() | ||
{ | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.