summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2018-02-06 23:13:48 +0000
committerMarshall Clow <mclow.lists@gmail.com>2018-02-06 23:13:48 +0000
commita3d37f071697771071addf2d9f2decad923de3ad (patch)
treef6111247cc56a4536b50590840bde12e16bf3d8b /libcxx/test/std/experimental/utilities/ratio/header.ratio.synop
parent98f8bba283969d51aba53018a0a1f31838006a58 (diff)
downloadbcm5719-llvm-a3d37f071697771071addf2d9f2decad923de3ad.tar.gz
bcm5719-llvm-a3d37f071697771071addf2d9f2decad923de3ad.zip
Remove more of the std::experimental bits that are now in std::. All the _v type aliases, conjunction/disjunction, apply, etc. See https://libcxx.llvm.org/TS_deprecation.html
llvm-svn: 324423
Diffstat (limited to 'libcxx/test/std/experimental/utilities/ratio/header.ratio.synop')
-rw-r--r--libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/includes.pass.cpp22
-rw-r--r--libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_equal_v.pass.cpp47
-rw-r--r--libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_greater_equal_v.pass.cpp61
-rw-r--r--libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_greater_v.pass.cpp57
-rw-r--r--libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_less_equal_v.pass.cpp57
-rw-r--r--libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_less_v.pass.cpp57
-rw-r--r--libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_not_equal_v.pass.cpp47
7 files changed, 0 insertions, 348 deletions
diff --git a/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/includes.pass.cpp b/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/includes.pass.cpp
deleted file mode 100644
index 485da33cdec..00000000000
--- a/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/includes.pass.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// UNSUPPORTED: c++98, c++03, c++11
-
-// <experimental/ratio>
-
-// Test that <ratio> is included.
-
-#include <experimental/ratio>
-
-int main()
-{
- std::ratio<100> x;
- ((void)x);
-}
diff --git a/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_equal_v.pass.cpp b/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_equal_v.pass.cpp
deleted file mode 100644
index 641e6ae22cc..00000000000
--- a/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_equal_v.pass.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// UNSUPPORTED: c++98, c++03, c++11
-
-// <experimental/ratio>
-
-// template <class R1, class R2> constexpr bool ratio_equal_v;
-
-#include <experimental/ratio>
-#include <type_traits>
-
-namespace ex = std::experimental;
-
-int main()
-{
- {
- typedef std::ratio<1, 1> R1;
- typedef std::ratio<1, 1> R2;
- static_assert(
- ex::ratio_equal_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_equal_v<R1, R2> == std::ratio_equal<R1, R2>::value, ""
- );
- static_assert(
- std::is_same<decltype(ex::ratio_equal_v<R1, R2>), const bool>::value
- , ""
- );
- }
- {
- typedef std::ratio<1, 1> R1;
- typedef std::ratio<1, -1> R2;
- static_assert(
- !ex::ratio_equal_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_equal_v<R1, R2> == std::ratio_equal<R1, R2>::value, ""
- );
- }
-}
diff --git a/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_greater_equal_v.pass.cpp b/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_greater_equal_v.pass.cpp
deleted file mode 100644
index 3896d0ac64d..00000000000
--- a/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_greater_equal_v.pass.cpp
+++ /dev/null
@@ -1,61 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// UNSUPPORTED: c++98, c++03, c++11
-
-// <experimental/ratio>
-
-// template <class R1, class R2> constexpr bool ratio_greater_equal_v;
-
-#include <experimental/ratio>
-#include <type_traits>
-
-namespace ex = std::experimental;
-
-int main()
-{
- {
- typedef std::ratio<1, 2> R1;
- typedef std::ratio<1, 1> R2;
- static_assert(
- !ex::ratio_greater_equal_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_greater_equal_v<R1, R2>
- == std::ratio_greater_equal<R1, R2>::value, ""
- );
- static_assert(
- std::is_same<
- decltype(ex::ratio_greater_equal_v<R1, R2>), const bool>::value
- , ""
- );
- }
- {
- typedef std::ratio<1, 1> R1;
- typedef std::ratio<1, 1> R2;
- static_assert(
- ex::ratio_greater_equal_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_greater_equal_v<R1, R2>
- == std::ratio_greater_equal<R1, R2>::value, ""
- );
- }
- {
- typedef std::ratio<2, 1> R1;
- typedef std::ratio<1, 1> R2;
- static_assert(
- ex::ratio_greater_equal_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_greater_equal_v<R1, R2>
- == std::ratio_greater_equal<R1, R2>::value, ""
- );
- }
-}
diff --git a/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_greater_v.pass.cpp b/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_greater_v.pass.cpp
deleted file mode 100644
index bdc54515f62..00000000000
--- a/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_greater_v.pass.cpp
+++ /dev/null
@@ -1,57 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// UNSUPPORTED: c++98, c++03, c++11
-
-// <experimental/ratio>
-
-// template <class R1, class R2> constexpr bool ratio_greater_v;
-
-#include <experimental/ratio>
-#include <type_traits>
-
-namespace ex = std::experimental;
-
-int main()
-{
- {
- typedef std::ratio<1, 2> R1;
- typedef std::ratio<1, 1> R2;
- static_assert(
- !ex::ratio_greater_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_greater_v<R1, R2> == std::ratio_greater<R1, R2>::value, ""
- );
- static_assert(
- std::is_same<decltype(ex::ratio_greater_v<R1, R2>), const bool>::value
- , ""
- );
- }
- {
- typedef std::ratio<1, 1> R1;
- typedef std::ratio<1, 1> R2;
- static_assert(
- !ex::ratio_greater_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_greater_v<R1, R2> == std::ratio_greater<R1, R2>::value, ""
- );
- }
- {
- typedef std::ratio<2, 1> R1;
- typedef std::ratio<1, 1> R2;
- static_assert(
- ex::ratio_greater_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_greater_v<R1, R2> == std::ratio_greater<R1, R2>::value, ""
- );
- }
-}
diff --git a/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_less_equal_v.pass.cpp b/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_less_equal_v.pass.cpp
deleted file mode 100644
index 50f213b0133..00000000000
--- a/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_less_equal_v.pass.cpp
+++ /dev/null
@@ -1,57 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// UNSUPPORTED: c++98, c++03, c++11
-
-// <experimental/ratio>
-
-// template <class R1, class R2> constexpr bool ratio_less_equal_v;
-
-#include <experimental/ratio>
-#include <type_traits>
-
-namespace ex = std::experimental;
-
-int main()
-{
- {
- typedef std::ratio<1, 2> R1;
- typedef std::ratio<1, 1> R2;
- static_assert(
- ex::ratio_less_equal_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_less_equal_v<R1, R2> == std::ratio_less_equal<R1, R2>::value, ""
- );
- static_assert(
- std::is_same<decltype(ex::ratio_less_equal_v<R1, R2>), const bool>::value
- , ""
- );
- }
- {
- typedef std::ratio<1, 1> R1;
- typedef std::ratio<1, 1> R2;
- static_assert(
- ex::ratio_less_equal_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_less_equal_v<R1, R2> == std::ratio_less_equal<R1, R2>::value, ""
- );
- }
- {
- typedef std::ratio<2, 1> R1;
- typedef std::ratio<1, 1> R2;
- static_assert(
- !ex::ratio_less_equal_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_less_equal_v<R1, R2> == std::ratio_less_equal<R1, R2>::value, ""
- );
- }
-}
diff --git a/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_less_v.pass.cpp b/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_less_v.pass.cpp
deleted file mode 100644
index 7a6d7738bd9..00000000000
--- a/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_less_v.pass.cpp
+++ /dev/null
@@ -1,57 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// UNSUPPORTED: c++98, c++03, c++11
-
-// <experimental/ratio>
-
-// template <class R1, class R2> constexpr bool ratio_less_v;
-
-#include <experimental/ratio>
-#include <type_traits>
-
-namespace ex = std::experimental;
-
-int main()
-{
- {
- typedef std::ratio<1, 2> R1;
- typedef std::ratio<1, 1> R2;
- static_assert(
- ex::ratio_less_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_less_v<R1, R2> == std::ratio_less<R1, R2>::value, ""
- );
- static_assert(
- std::is_same<decltype(ex::ratio_less_v<R1, R2>), const bool>::value
- , ""
- );
- }
- {
- typedef std::ratio<1, 1> R1;
- typedef std::ratio<1, 1> R2;
- static_assert(
- !ex::ratio_less_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_less_v<R1, R2> == std::ratio_less<R1, R2>::value, ""
- );
- }
- {
- typedef std::ratio<2, 1> R1;
- typedef std::ratio<1, 1> R2;
- static_assert(
- !ex::ratio_less_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_less_v<R1, R2> == std::ratio_less<R1, R2>::value, ""
- );
- }
-}
diff --git a/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_not_equal_v.pass.cpp b/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_not_equal_v.pass.cpp
deleted file mode 100644
index b5296ff24ef..00000000000
--- a/libcxx/test/std/experimental/utilities/ratio/header.ratio.synop/ratio_not_equal_v.pass.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is dual licensed under the MIT and the University of Illinois Open
-// Source Licenses. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// UNSUPPORTED: c++98, c++03, c++11
-
-// <experimental/ratio>
-
-// template <class R1, class R2> constexpr bool ratio_not_equal_v;
-
-#include <experimental/ratio>
-#include <type_traits>
-
-namespace ex = std::experimental;
-
-int main()
-{
- {
- typedef std::ratio<1, 1> R1;
- typedef std::ratio<1, -1> R2;
- static_assert(
- ex::ratio_not_equal_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_not_equal_v<R1, R2> == std::ratio_not_equal<R1, R2>::value, ""
- );
- static_assert(
- std::is_same<decltype(ex::ratio_not_equal_v<R1, R2>), const bool>::value
- , ""
- );
- }
- {
- typedef std::ratio<1, 1> R1;
- typedef std::ratio<1, 1> R2;
- static_assert(
- !ex::ratio_not_equal_v<R1, R2>, ""
- );
- static_assert(
- ex::ratio_not_equal_v<R1, R2> == std::ratio_not_equal<R1, R2>::value, ""
- );
- }
-}
OpenPOWER on IntegriCloud