mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-06 10:46:18 +08:00
@@ -4,11 +4,11 @@
|
||||
#include <source_location>
|
||||
#include <tuple>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
namespace test_inheritance {
|
||||
|
||||
void test() {
|
||||
std::cout << std::source_location::current().function_name() << std::endl;
|
||||
|
||||
TEST(json, test_inheritance) {
|
||||
struct S {
|
||||
int x;
|
||||
};
|
||||
@@ -20,7 +20,7 @@ void test() {
|
||||
|
||||
static_assert(name == "x");
|
||||
|
||||
std::cout << "OK" << std::endl << std::endl;
|
||||
EXPECT_TRUE(true);
|
||||
}
|
||||
|
||||
} // namespace test_inheritance
|
||||
|
||||
Reference in New Issue
Block a user