(root)/
gcc-13.2.0/
libstdc++-v3/
testsuite/
20_util/
any/
cons/
104242.cc
// { dg-do compile { target c++17 } }

// PR libstdc++/104242 - Class with constructor from std::any is not copyable

#include <any>
#include <type_traits>

struct A {
    A(const A&) = default;
    explicit A(std::any value);
};
static_assert(std::is_copy_constructible_v<A>);