Test if a narrow string padding with wide char doesn't compile.
This commit is contained in:
parent
1f17447fac
commit
ec7006fb99
@ -13,7 +13,9 @@ function (expect_compile_error code)
|
||||
if (compiles)
|
||||
error("No compile error for: ${code}")
|
||||
endif ()
|
||||
unset(compiles CACHE)
|
||||
endfunction ()
|
||||
|
||||
# Writing a wide character to a character stream Writer is forbidden.
|
||||
expect_compile_error("fmt::Writer() << L'a';")
|
||||
expect_compile_error("fmt::Writer() << fmt::pad(\"abc\", 5, L' ');")
|
||||
|
Loading…
Reference in New Issue
Block a user