// { dg-do compile { target c++14 } } // PR libstdc++/101427 #include void test_pr101427() { std::tuple tup1; std::get(tup1); // { dg-error "here" } const std::tuple tup2; std::get(tup2); // { dg-error "here" } std::tuple tup3; std::get(std::move(tup3)); // { dg-error "here" } const std::tuple tup4; std::get(std::move(tup4)); // { dg-error "here" } // { dg-error "must occur exactly once in the tuple" "" { target *-*-* } 0 } } // { dg-prune-output "use of deleted function" }