28 #if FOLLY_DETAIL_HAVE_DEMANGLE_H 30 char expected[] =
"folly_test::ThisIsAVeryLongStructureName";
36 char buf[
sizeof(expected)];
52 #if defined(FOLLY_DEMANGLE_MAX_SYMBOL_SIZE) 55 template <
int I,
class T1,
class T2>
58 template <
int N,
int I = 1>
60 using arg1 =
typename LongSymbol<N / 2, 2 * I>
::type;
61 using arg2 =
typename LongSymbol<N / 2, 2 * I + 1>
::type;
66 struct LongSymbol<0, I> {
72 TEST(Demangle, LongSymbolFallback) {
85 #endif // defined(FOLLY_DEMANGLE_MAX_SYMBOL_SIZE) 87 #endif // FOLLY_DETAIL_HAVE_DEMANGLE_H 100 const char* big_string =
"abcdefghijklmnop";
#define EXPECT_EQ(val1, val2)
#define EXPECT_STREQ(s1, s2)
size_t strlcpy(char *dest, const char *const src, size_t size)
fbstring demangle(const char *name)