From 1f4538fdab078b642e4f20c49822eb818a27852f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 12 Jun 2016 18:22:06 +0300 Subject: Add test for #elif. --- tools/ci/samples/test10.cpp | 12 ++++++++++++ tools/ci/samples/test10.h | 13 +++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 tools/ci/samples/test10.cpp create mode 100644 tools/ci/samples/test10.h (limited to 'tools') diff --git a/tools/ci/samples/test10.cpp b/tools/ci/samples/test10.cpp new file mode 100644 index 0000000..a983c34 --- /dev/null +++ b/tools/ci/samples/test10.cpp @@ -0,0 +1,12 @@ +#include "test10.h" + +#ifndef QQQ +#include "include1.h" +#elif defined(ZZZ) +#include "include3.h" +#endif // QQQ + +int function1() +{ + return 0; +} diff --git a/tools/ci/samples/test10.h b/tools/ci/samples/test10.h new file mode 100644 index 0000000..5450ec6 --- /dev/null +++ b/tools/ci/samples/test10.h @@ -0,0 +1,13 @@ +#ifndef TEST10 +#define TEST10 + +#ifndef QQQ +#include "include2.h" +#elif !defined(ZZZ) +#include "include4.h" +#endif // QQQ + +int function1(); + +#define ZZZ +#endif // TEST10 -- cgit v1.2.3-70-g09d2