summaryrefslogtreecommitdiff
path: root/absl/debugging/internal/demangle_test.cc
diff options
context:
space:
mode:
authorGravatar Chris Mihelich <cmihelic@google.com>2024-05-23 15:28:19 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2024-05-23 15:30:43 -0700
commitd60c089e06b638483db5995d16550303225b1b5b (patch)
treee8dfd7e8d0b24c568125c983679f9b6194f8c102 /absl/debugging/internal/demangle_test.cc
parentb3cd02500c67749ee7441987cb7d37c89aead79b (diff)
Demangle the C++ this pointer (fpT).
PiperOrigin-RevId: 636695970 Change-Id: I22d6f13271ab965563f1f575d9d7ba0ed1af466d
Diffstat (limited to 'absl/debugging/internal/demangle_test.cc')
-rw-r--r--absl/debugging/internal/demangle_test.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/absl/debugging/internal/demangle_test.cc b/absl/debugging/internal/demangle_test.cc
index 269a35aa..8dcfb517 100644
--- a/absl/debugging/internal/demangle_test.cc
+++ b/absl/debugging/internal/demangle_test.cc
@@ -308,6 +308,14 @@ TEST(Demangle, AbiTags) {
EXPECT_STREQ("C[abi:bar][abi:foo]()", tmp);
}
+TEST(Demangle, ThisPointerInDependentSignature) {
+ char tmp[80];
+
+ // decltype(g<int>(this)) S::f<int>()
+ EXPECT_TRUE(Demangle("_ZN1S1fIiEEDTcl1gIT_EfpTEEv", tmp, sizeof(tmp)));
+ EXPECT_STREQ("S::f<>()", tmp);
+}
+
// Test subobject-address template parameters.
TEST(Demangle, SubobjectAddresses) {
char tmp[80];