aboutsummaryrefslogtreecommitdiff
path: root/test/asan/TestCases/debug_double_free.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/asan/TestCases/debug_double_free.cc')
-rw-r--r--test/asan/TestCases/debug_double_free.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/asan/TestCases/debug_double_free.cc b/test/asan/TestCases/debug_double_free.cc
index c3699b9762d8..44c820b638d6 100644
--- a/test/asan/TestCases/debug_double_free.cc
+++ b/test/asan/TestCases/debug_double_free.cc
@@ -15,6 +15,9 @@
# else
# define PTR_FMT "0x%08x"
# endif
+// Solaris libc omits the leading 0x.
+#elif defined(__sun__) && defined(__svr4__)
+# define PTR_FMT "0x%p"
#else
# define PTR_FMT "%p"
#endif