From ec7006fb993b4465b15cc69b3137d4d1c13ad494 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 7 Jan 2014 08:57:37 -0800 Subject: [PATCH] Test if a narrow string padding with wide char doesn't compile. --- test/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 358a2b8f..be713bca 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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' ');")