Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / sanitizer_common / sanitizer_ucontext.h
blobd7882fd7f4ed24bf9fdd0d5598909f1e11e6f07d
1 #ifdef __APPLE__
2 // ucontext.h is deprecated on macOS, so tests that include it may stop working
3 // someday. We define _XOPEN_SOURCE to keep using ucontext.h for now.
4 #ifdef _STRUCT_UCONTEXT
5 #error incomplete ucontext_t already defined, change #include order
6 #endif
7 #define _XOPEN_SOURCE 700
8 #pragma clang diagnostic ignored "-Wdeprecated-declarations"
9 #endif
11 #include <ucontext.h>