180e66ac1SEric Fiselier //===----------------------------------------------------------------------===//
280e66ac1SEric Fiselier //
357b08b09SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
457b08b09SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
557b08b09SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
680e66ac1SEric Fiselier //
780e66ac1SEric Fiselier //===----------------------------------------------------------------------===//
880e66ac1SEric Fiselier 
931cbe0f2SLouis Dionne // UNSUPPORTED: c++03, c++11, c++14
1080e66ac1SEric Fiselier 
1180e66ac1SEric Fiselier // <variant>
1280e66ac1SEric Fiselier 
1380e66ac1SEric Fiselier // template <class ...Types> class variant;
1480e66ac1SEric Fiselier 
1580e66ac1SEric Fiselier 
1680e66ac1SEric Fiselier #include <variant>
1780e66ac1SEric Fiselier #include <type_traits>
1880e66ac1SEric Fiselier #include <string>
1980e66ac1SEric Fiselier #include <cassert>
2080e66ac1SEric Fiselier 
2180e66ac1SEric Fiselier #include "test_macros.h"
22cc89063bSNico Weber #include "variant_test_helpers.h"
23cc89063bSNico Weber #include "test_convertible.h"
2480e66ac1SEric Fiselier 
main(int,char **)252df59c50SJF Bastien int main(int, char**)
2680e66ac1SEric Fiselier {
27*76476efdSMuhammad Usman Shahid     // expected-error-re@variant:* 3 {{{{(static_assert|static assertion)}} failed}}
2880e66ac1SEric Fiselier     std::variant<int, int[]> v; // expected-note {{requested here}}
2980e66ac1SEric Fiselier     std::variant<int, int[42]> v2; // expected-note {{requested here}}
3080e66ac1SEric Fiselier     std::variant<int, int[][42]> v3; // expected-note {{requested here}}
312df59c50SJF Bastien 
322df59c50SJF Bastien   return 0;
3380e66ac1SEric Fiselier }
34