diff options
Diffstat (limited to 'test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp')
| -rw-r--r-- | test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp b/test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp deleted file mode 100644 index 31521dae223cf..0000000000000 --- a/test/std/utilities/variant/variant.helpers/variant_alternative.fail.cpp +++ /dev/null @@ -1,32 +0,0 @@ -// -*- C++ -*- -//===----------------------------------------------------------------------===// -// -// 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, c++14 - -// <variant> - -// template <size_t I, class T> struct variant_alternative; // undefined -// template <size_t I, class T> struct variant_alternative<I, const T>; -// template <size_t I, class T> struct variant_alternative<I, volatile T>; -// template <size_t I, class T> struct variant_alternative<I, const volatile T>; -// template <size_t I, class T> -// using variant_alternative_t = typename variant_alternative<I, T>::type; -// -// template <size_t I, class... Types> -// struct variant_alternative<I, variant<Types...>>; - -#include <memory> -#include <type_traits> -#include <variant> - -int main() { - using V = std::variant<int, void *, const void *, long double>; - std::variant_alternative<4, V>::type foo; // expected-error@variant:* {{Index out of bounds in std::variant_alternative<>}} -} |
