diff options
author | Chris Mihelich <cmihelic@google.com> | 2024-05-28 15:15:46 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-05-28 15:16:44 -0700 |
commit | 44e077d6660f06e5500a604b48f8c109396d6d0d (patch) | |
tree | 8b01a8d4e8c2a13e76a33476334e16613e23c378 /absl/debugging/internal/demangle_test.cc | |
parent | 3ef92c6f375e71316c313a3f1a204c494cd3f762 (diff) |
Demangle thread_local helper functions.
PiperOrigin-RevId: 638039514
Change-Id: I623d87e91ebe0a1166fee175151179b61ef54249
Diffstat (limited to 'absl/debugging/internal/demangle_test.cc')
-rw-r--r-- | absl/debugging/internal/demangle_test.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/absl/debugging/internal/demangle_test.cc b/absl/debugging/internal/demangle_test.cc index 5fd50aff..a2586e34 100644 --- a/absl/debugging/internal/demangle_test.cc +++ b/absl/debugging/internal/demangle_test.cc @@ -631,6 +631,16 @@ TEST(Demangle, ReferenceQualifiedFunctionTypes) { EXPECT_STREQ("f()", tmp); } +TEST(Demangle, ThreadLocalWrappers) { + char tmp[80]; + + EXPECT_TRUE(Demangle("_ZTWN2ns3varE", tmp, sizeof(tmp))); + EXPECT_STREQ("thread-local wrapper routine for ns::var", tmp); + + EXPECT_TRUE(Demangle("_ZTHN2ns3varE", tmp, sizeof(tmp))); + EXPECT_STREQ("thread-local initialization routine for ns::var", tmp); +} + // Test one Rust symbol to exercise Demangle's delegation path. Rust demangling // itself is more thoroughly tested in demangle_rust_test.cc. TEST(Demangle, DelegatesToDemangleRustSymbolEncoding) { |