diff options
author | Rainer Orth <ro@gcc.gnu.org> | 2021-03-17 09:56:19 +0100 |
---|---|---|
committer | Rainer Orth <ro@gcc.gnu.org> | 2021-03-17 09:56:19 +0100 |
commit | 3b8b5d1f22f2c5d8ae55709a92d02011dea056ca (patch) | |
tree | a78afa12f7c1699d918c2003bfa5d85fed739bf0 /clang/lib/Sema/MultiplexExternalSemaSource.cpp | |
parent | c86dacd1a4489572721dec3135506d31da96c679 (diff) | |
download | llvm-3b8b5d1f22f2c5d8ae55709a92d02011dea056ca.zip llvm-3b8b5d1f22f2c5d8ae55709a92d02011dea056ca.tar.gz llvm-3b8b5d1f22f2c5d8ae55709a92d02011dea056ca.tar.bz2 |
[sanitizer_common][test] Handle missing REG_STARTEND in Posix/regex_startend.cpp
As reported in D96348 <https://reviews.llvm.org/D96348>, the
`Posix/regex_startend.cpp` test `FAIL`s on Solaris because
`REG_STARTEND` isn't defined. It's a BSD extension not present everywhere.
E.g. AIX doesn't have it, too.
Fixed by wrapping the test in `#ifdef REG_STARTEND`.
Tested on `amd64-pc-solaris2.11`, `sparcv9-sun-solaris2.11`, and
`x86_64-pc-linux-gnu`.
Differential Revision: https://reviews.llvm.org/D98425
Diffstat (limited to 'clang/lib/Sema/MultiplexExternalSemaSource.cpp')
0 files changed, 0 insertions, 0 deletions