More tests.

This commit is contained in:
Victor Zverovich
2014-04-27 06:56:12 -07:00
parent 0b307248a6
commit 8641461c98
3 changed files with 56 additions and 3 deletions
+3
View File
@@ -33,3 +33,6 @@ expect_compile_error("fmt::Writer a, b; b = 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(42, 5, L' ');")
# Formatting a wide character with a narrow format string is forbidden.
expect_compile_error("Format(\"{}\") << L'a';")