From fa3efb1330b407ea821cd8aced46ab3e314950c9 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 8 Jan 2014 08:16:00 -0800 Subject: [PATCH] Add a compile error test. --- test/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 1ce7cb0e..5a027e13 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -24,3 +24,4 @@ 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' ');") +expect_compile_error("fmt::Writer() << fmt::pad(42, 5, L' ');")