Commit ec7006fb authored by Victor Zverovich's avatar Victor Zverovich

Test if a narrow string padding with wide char doesn't compile.

parent 1f17447f
...@@ -13,7 +13,9 @@ function (expect_compile_error code) ...@@ -13,7 +13,9 @@ function (expect_compile_error code)
if (compiles) if (compiles)
error("No compile error for: ${code}") error("No compile error for: ${code}")
endif () endif ()
unset(compiles CACHE)
endfunction () endfunction ()
# Writing a wide character to a character stream Writer is forbidden. # Writing a wide character to a character stream Writer is forbidden.
expect_compile_error("fmt::Writer() << L'a';") expect_compile_error("fmt::Writer() << L'a';")
expect_compile_error("fmt::Writer() << fmt::pad(\"abc\", 5, L' ');")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment