From 5adc272ee7fdc30c0581fb4d68732687898f7248 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 25 Apr 2014 07:44:35 -0700 Subject: [PATCH] Add tests. --- test/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 5a027e13..c8acaa43 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -21,6 +21,14 @@ function (expect_compile_error code) endif () endfunction () +# Array is noncopyable. +expect_compile_error("fmt::internal::Array a, b(a);") +expect_compile_error("fmt::internal::Array a, b; b = a;") + +# Writer is noncopyable. +expect_compile_error("fmt::Writer a, b(a);") +expect_compile_error("fmt::Writer a, b; b = a;") + # 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' ');")