From b259e9981e2ab22b8133f6837017323113525acb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 15 Jun 2016 16:39:46 +0300 Subject: Fix false positive in preprocessor block #else, if this block will be not processed by compilation. --- tools/ci/samples/test14.cpp | 14 ++++++++++++++ tools/ci/samples/test14.h | 6 ++++++ 2 files changed, 20 insertions(+) create mode 100644 tools/ci/samples/test14.cpp create mode 100644 tools/ci/samples/test14.h (limited to 'tools') diff --git a/tools/ci/samples/test14.cpp b/tools/ci/samples/test14.cpp new file mode 100644 index 0000000..5632789 --- /dev/null +++ b/tools/ci/samples/test14.cpp @@ -0,0 +1,14 @@ +#include "test14.h" + +#ifdef QQQ +#ifdef ZZZ +#include +#else +#include +#endif +#endif + +int function1() +{ + return 0; +} diff --git a/tools/ci/samples/test14.h b/tools/ci/samples/test14.h new file mode 100644 index 0000000..c36b0ab --- /dev/null +++ b/tools/ci/samples/test14.h @@ -0,0 +1,6 @@ +#ifndef TEST14 +#define TEST14 + +int function1(); + +#endif // TEST14 \ No newline at end of file -- cgit v1.2.3-70-g09d2