From 79a99cfca1223aa1f17ceed0ab2fd5de16108b5b Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 14 Oct 2021 21:16:00 +0300 Subject: Fortify tests against NDEBUG --- tests/compiler/sloc-counter/driver.cxx | 4 +++- tests/compiler/sloc-counter/test.cxx | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/compiler/sloc-counter') diff --git a/tests/compiler/sloc-counter/driver.cxx b/tests/compiler/sloc-counter/driver.cxx index c85c571..b888d42 100644 --- a/tests/compiler/sloc-counter/driver.cxx +++ b/tests/compiler/sloc-counter/driver.cxx @@ -3,12 +3,14 @@ #include #include -#include #include #include #include +#undef NDEBUG +#include + using namespace std; using namespace cutl::compiler; diff --git a/tests/compiler/sloc-counter/test.cxx b/tests/compiler/sloc-counter/test.cxx index ff0f5b2..70201ee 100644 --- a/tests/compiler/sloc-counter/test.cxx +++ b/tests/compiler/sloc-counter/test.cxx @@ -12,6 +12,9 @@ #include +#undef NDEBUG +#include + char str[] = "multi\ line\ string\ @@ -25,7 +28,7 @@ int main( char* argv[] /*array*/) { /* comment start */ int x = 0; - char* s = + char* s = /* comment start */"foo"; int y = 2 /* tricky stuff *// -- cgit v1.1