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 #include <variant>
1680e66ac1SEric Fiselier 
1780e66ac1SEric Fiselier #include "test_macros.h"
18cc89063bSNico Weber #include "variant_test_helpers.h"
1980e66ac1SEric Fiselier 
main(int,char **)202df59c50SJF Bastien int main(int, char**)
2180e66ac1SEric Fiselier {
22*76476efdSMuhammad Usman Shahid     // expected-error-re@variant:* 3 {{{{(static_assert|static assertion)}} failed}}
2380e66ac1SEric Fiselier     std::variant<int, int&> v; // expected-note {{requested here}}
240d3d8de0SEric Fiselier     std::variant<int, const int &> v2; // expected-note {{requested here}}
2580e66ac1SEric Fiselier     std::variant<int, int&&> v3; // expected-note {{requested here}}
262df59c50SJF Bastien 
272df59c50SJF Bastien   return 0;
2880e66ac1SEric Fiselier }
29