Add a compile error test.

This commit is contained in:
Victor Zverovich 2014-01-08 08:16:00 -08:00
parent f380dc3daa
commit fa3efb1330

View File

@ -24,3 +24,4 @@ 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' ');") expect_compile_error("fmt::Writer() << fmt::pad(\"abc\", 5, L' ');")
expect_compile_error("fmt::Writer() << fmt::pad(42, 5, L' ');")