1 // -*- C++ -*-
2 //===----------------------------------------------------------------------===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // UNSUPPORTED: c++03, c++11, c++14
11 
12 // <variant>
13 
14 // template <class ...Types> class variant;
15 
16 #include <variant>
17 
18 #include "test_macros.h"
19 #include "variant_test_helpers.h"
20 
main(int,char **)21 int main(int, char**)
22 {
23     // expected-error@variant:* 1 {{static_assert failed}}
24     std::variant<> v; // expected-note {{requested here}}
25 
26   return 0;
27 }
28