mirror of
https://github.com/fmtlib/fmt.git
synced 2026-02-16 23:29:57 +08:00
Remove compilation error tests
This commit is contained in:
parent
d22d2d5dc7
commit
8dd4b48120
@ -210,34 +210,6 @@ if (CMAKE_CXX_STANDARD GREATER_EQUAL 20)
|
|||||||
#error
|
#error
|
||||||
#endif
|
#endif
|
||||||
" ERROR)
|
" ERROR)
|
||||||
|
|
||||||
# Format string compilation tests
|
|
||||||
expect_compile(compiled-format-string-missing-argument-error "
|
|
||||||
#if defined(FMT_HAS_CONSTEVAL) && FMT_USE_NONTYPE_TEMPLATE_ARGS
|
|
||||||
using namespace fmt::literals;
|
|
||||||
fmt::format(FMT_COMPILE(\"{x}\"));
|
|
||||||
#else
|
|
||||||
#error
|
|
||||||
#endif
|
|
||||||
" ERROR)
|
|
||||||
|
|
||||||
expect_compile(compiled-format-string-argument-unassigned-error "
|
|
||||||
#if defined(FMT_HAS_CONSTEVAL) && FMT_USE_NONTYPE_TEMPLATE_ARGS
|
|
||||||
using namespace fmt::literals;
|
|
||||||
fmt::format(FMT_COMPILE(\"{x}\"), \"x\"_a);
|
|
||||||
#else
|
|
||||||
#error
|
|
||||||
#endif
|
|
||||||
" ERROR)
|
|
||||||
|
|
||||||
expect_compile(compiled-format-string-missing-other-argument-error "
|
|
||||||
#if defined(FMT_HAS_CONSTEVAL) && FMT_USE_NONTYPE_TEMPLATE_ARGS
|
|
||||||
using namespace fmt::literals;
|
|
||||||
fmt::format(FMT_COMPILE(\"{a} {b}\"), \"b\"_a=42);
|
|
||||||
#else
|
|
||||||
#error
|
|
||||||
#endif
|
|
||||||
" ERROR)
|
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# Run all tests
|
# Run all tests
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user