summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-15 16:39:46 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-15 16:39:46 +0300
commitb259e9981e2ab22b8133f6837017323113525acb (patch)
treef830677b085ba9f89da51f50eac6c1383eccf1d2 /tools
parent92f29a5926d52efea128ffabcf9b45b58039fc63 (diff)
downloaddeheader-b259e9981e2ab22b8133f6837017323113525acb.tar.gz
deheader-b259e9981e2ab22b8133f6837017323113525acb.tar.bz2
deheader-b259e9981e2ab22b8133f6837017323113525acb.tar.xz
deheader-b259e9981e2ab22b8133f6837017323113525acb.zip
Fix false positive in preprocessor block #else, if this block will be not processed by compilation.
Diffstat (limited to 'tools')
-rw-r--r--tools/ci/samples/test14.cpp14
-rw-r--r--tools/ci/samples/test14.h6
2 files changed, 20 insertions, 0 deletions
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 <vector>
+#else
+#include <string>
+#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