mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 16:56:17 +08:00
@@ -1,14 +1,15 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <cassert>
|
||||
#include <iostream>
|
||||
#include <rfl.hpp>
|
||||
#include <source_location>
|
||||
#include <tuple>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
namespace test_inheritance {
|
||||
|
||||
TEST(json, test_inheritance) {
|
||||
#ifdef REFLECT_CPP_C_ARRAYS_OR_INHERITANCE
|
||||
struct S {
|
||||
int x;
|
||||
};
|
||||
@@ -21,6 +22,7 @@ TEST(json, test_inheritance) {
|
||||
static_assert(name == "x");
|
||||
|
||||
EXPECT_TRUE(true);
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace test_inheritance
|
||||
|
||||
Reference in New Issue
Block a user