From: Casey Carter Date: Mon, 9 Jul 2018 23:45:09 +0000 (+0000) Subject: [test] two small cleanups: X-Git-Tag: llvmorg-7.0.0-rc1~1896 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6cd35e819438184a65d757bdbee2e749702915d5;p=platform%2Fupstream%2Fllvm.git [test] two small cleanups: * Remove unused type from is_assignable.pass.cpp * Don't specialize `common_type<::X>` in common_type.pass.cpp, which violates the requirements of [meta.trans.other]/5 llvm-svn: 336618 --- diff --git a/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/common_type.pass.cpp b/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/common_type.pass.cpp index 85b1472..dbbbe15 100644 --- a/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/common_type.pass.cpp +++ b/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/common_type.pass.cpp @@ -11,8 +11,9 @@ // common_type -#include +#include #include +#include #include "test_macros.h" @@ -45,7 +46,6 @@ namespace std template <> struct common_type< ::S, long> {}; template <> struct common_type > {}; - template <> struct common_type< ::X > {}; template <> struct common_type< ::X, ::X > {}; } @@ -97,7 +97,6 @@ void test_bullet_two() { static_assert(std::is_same, int volatile*>::value, ""); static_assert(std::is_same, void(*)()>::value, ""); - static_assert(no_common_type >::value, ""); static_assert(no_common_type >::value, ""); } diff --git a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_assignable.pass.cpp b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_assignable.pass.cpp index 8d63a23..4808a4d 100644 --- a/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_assignable.pass.cpp +++ b/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_assignable.pass.cpp @@ -59,8 +59,6 @@ struct E template struct X { T t; }; -struct Incomplete; - int main() { test_is_assignable ();