We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28fcbe4 commit e6ed708Copy full SHA for e6ed708
1 file changed
src/software/util/typename/typename_test.cpp
@@ -17,7 +17,13 @@ class TestTypeA : public TestType
17
TEST(TypeNameTest, abstract_base_class_concrete_subtype)
18
{
19
std::shared_ptr<TestType> test_type = std::make_shared<TestTypeA>();
20
+#ifdef __APPLE__
21
+ // With clang / libc++, the standard library uses an inline namespace '__1' for
22
+ // ABI versioning, which is reflected in the demangled type name.
23
+ EXPECT_EQ("std::__1::shared_ptr<TestType>", objectTypeName(test_type));
24
+#else
25
EXPECT_EQ("std::shared_ptr<TestType>", objectTypeName(test_type));
26
+#endif
27
EXPECT_EQ("TestTypeA", objectTypeName(*test_type));
28
}
29
0 commit comments