[libcxx] r272722 - Fix bad test that was previously getting ifdef-ed away

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 14 14:50:30 PDT 2016


Author: ericwf
Date: Tue Jun 14 16:50:30 2016
New Revision: 272722

URL: http://llvm.org/viewvc/llvm-project?rev=272722&view=rev
Log:
Fix bad test that was previously getting ifdef-ed away

Modified:
    libcxx/trunk/test/std/utilities/time/time.traits/time.traits.is_fp/treat_as_floating_point.pass.cpp

Modified: libcxx/trunk/test/std/utilities/time/time.traits/time.traits.is_fp/treat_as_floating_point.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/utilities/time/time.traits/time.traits.is_fp/treat_as_floating_point.pass.cpp?rev=272722&r1=272721&r2=272722&view=diff
==============================================================================
--- libcxx/trunk/test/std/utilities/time/time.traits/time.traits.is_fp/treat_as_floating_point.pass.cpp (original)
+++ libcxx/trunk/test/std/utilities/time/time.traits/time.traits.is_fp/treat_as_floating_point.pass.cpp Tue Jun 14 16:50:30 2016
@@ -23,8 +23,8 @@ test()
     static_assert((std::is_base_of<std::is_floating_point<T>,
                                    std::chrono::treat_as_floating_point<T> >::value), "");
 #if TEST_STD_VER > 14
-    static_assert((std::is_base_of<std::is_floating_point<T>,
-                                   std::chrono::treat_as_floating_point_v<T> >), "");
+    static_assert(std::is_floating_point<T>::value ==
+                                  std::chrono::treat_as_floating_point_v<T>, "");
 #endif
 }
 




More information about the cfe-commits mailing list