summaryrefslogtreecommitdiffhomepage
path: root/test/entity.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-18 12:09:33 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-18 12:30:20 +0100
commitca6a78e4983655596af796650861b22385583549 (patch)
treeb227e29a9d8bcd3c2b86d89fc9953199c3a80dd1 /test/entity.cpp
parent50d4d02508767ed3cb67bf1ed424c61c23e44117 (diff)
entity: add typedef test
Diffstat (limited to 'test/entity.cpp')
-rw-r--r--test/entity.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/entity.cpp b/test/entity.cpp
index 7832eae2..b9b7c32f 100644
--- a/test/entity.cpp
+++ b/test/entity.cpp
@@ -141,6 +141,8 @@ void test_type_name()
static_assert(name.data() == name_of<foobar>.data());
static_assert(name_of<int> != name_of<unsigned>);
static_assert(name_of<foobar*> != name_of<const foobar*>);
+ using foobar2 = foobar;
+ static_assert(name_of<foobar2>.data() == name_of<foobar>.data());
}
constexpr bool test_null_writer()