Files
meta.hpp/develop/untests/meta_issues/github_issue_104.cpp
BlackMATov f2db9c2a44 fixed #104
2024-09-21 22:10:54 +07:00

28 lines
887 B
C++

/*******************************************************************************
* This file is part of the "https://github.com/blackmatov/meta.hpp"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2021-2024, by Matvey Cherevko (blackmatov@gmail.com)
******************************************************************************/
#include <meta.hpp/meta_all.hpp>
#include <doctest/doctest.h>
namespace
{
struct clazz {};
}
TEST_CASE("meta/meta_issues/104") {
namespace meta = meta_hpp;
using namespace std::string_literals;
meta::class_<clazz>()
.destructor_(meta::metadata_()("hello", "world"s));
CHECK(meta::resolve_type<clazz>().get_destructor().get_metadata().contains("hello"));
meta::class_<clazz>();
CHECK(meta::resolve_type<clazz>().get_destructor().get_metadata().contains("hello"));
}