mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-23 22:27:43 +01:00
12 lines
316 B
C++
12 lines
316 B
C++
// { dg-do compile { target c++17 } }
|
|
|
|
#include <tuple>
|
|
#include <variant>
|
|
|
|
int main() {
|
|
using variant_t = std::variant<short, int, long>;
|
|
constexpr auto variant_v = variant_t{std::in_place_index_t<0>{}, short{}};
|
|
constexpr auto tuple = std::make_tuple(variant_v);
|
|
constexpr std::tuple tuple_v{variant_v};
|
|
}
|