diff options
Diffstat (limited to 'test/asan/TestCases/debug_report.cc')
-rw-r--r-- | test/asan/TestCases/debug_report.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/asan/TestCases/debug_report.cc b/test/asan/TestCases/debug_report.cc index 34bc06eba62c..14bb70e9f593 100644 --- a/test/asan/TestCases/debug_report.cc +++ b/test/asan/TestCases/debug_report.cc @@ -30,6 +30,9 @@ int main() { # 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 |