[test] two small cleanups:
authorCasey Carter <Casey@Carter.net>
Mon, 9 Jul 2018 23:45:09 +0000 (23:45 +0000)
committerCasey Carter <Casey@Carter.net>
Mon, 9 Jul 2018 23:45:09 +0000 (23:45 +0000)
* Remove unused type from is_assignable.pass.cpp

* Don't specialize `common_type<::X<float>>` in common_type.pass.cpp, which violates the requirements of [meta.trans.other]/5

llvm-svn: 336618

libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/common_type.pass.cpp
libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/is_assignable.pass.cpp

index 85b1472..dbbbe15 100644 (file)
@@ -11,8 +11,9 @@
 
 // common_type
 
-#include <type_traits>
+#include <functional>
 #include <memory>
+#include <type_traits>
 
 #include "test_macros.h"
 
@@ -45,7 +46,6 @@ namespace std
 
     template <> struct common_type< ::S<long>, long> {};
     template <> struct common_type<long, ::S<long> > {};
-    template <> struct common_type< ::X<float> > {};
     template <> struct common_type< ::X<double>, ::X<double> > {};
 }
 
@@ -97,7 +97,6 @@ void test_bullet_two() {
   static_assert(std::is_same<CommonType<int volatile[]>, int volatile*>::value, "");
   static_assert(std::is_same<CommonType<void(&)()>, void(*)()>::value, "");
 
-  static_assert(no_common_type<X<float> >::value, "");
   static_assert(no_common_type<X<double> >::value, "");
 }