Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Mayer <fmayer@google.com>2022-08-05 01:02:52 +0300
committerFlorian Mayer <fmayer@google.com>2022-08-05 05:55:40 +0300
commitfc6a6ee507ec2df0df7d34ba19feccb776297e4c (patch)
treee07d9955d05457a1a30dced5755713bbeb049898 /libunwind/test/unw_getcontext.pass.cpp
parent3b631e47fe4cfc366fd107c748e6ac01b4f5974a (diff)
[libunwind] undef NDEBUG for assert.h in tests.
This makes sure the assertions also get verified in optimized builds. This matches what is already done in bad_unwind_info.pass.cpp. Reviewed By: #libunwind, MaskRay Differential Revision: https://reviews.llvm.org/D131210
Diffstat (limited to 'libunwind/test/unw_getcontext.pass.cpp')
-rw-r--r--libunwind/test/unw_getcontext.pass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libunwind/test/unw_getcontext.pass.cpp b/libunwind/test/unw_getcontext.pass.cpp
index 7e2735e418be..95ffcf123267 100644
--- a/libunwind/test/unw_getcontext.pass.cpp
+++ b/libunwind/test/unw_getcontext.pass.cpp
@@ -7,6 +7,7 @@
//
//===----------------------------------------------------------------------===//
+#undef NDEBUG
#include <assert.h>
#include <libunwind.h>