summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/modularize/Inputs
diff options
context:
space:
mode:
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>2013-07-26 18:16:22 +0000
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>2013-07-26 18:16:22 +0000
commit1e0101461e55276c39f39e767635a036de6d25fa (patch)
tree226bafdeaf3b1d175459404047f4f18d77834b7c /clang-tools-extra/test/modularize/Inputs
parent318f09fda771b4af8b57026834058ae74f3fbc67 (diff)
downloadbcm5719-llvm-1e0101461e55276c39f39e767635a036de6d25fa.tar.gz
bcm5719-llvm-1e0101461e55276c39f39e767635a036de6d25fa.zip
Added new feature for checking macro and preprocessor conditional consistency.
llvm-svn: 187228
Diffstat (limited to 'clang-tools-extra/test/modularize/Inputs')
-rw-r--r--clang-tools-extra/test/modularize/Inputs/InconsistentSubHeader.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang-tools-extra/test/modularize/Inputs/InconsistentSubHeader.h b/clang-tools-extra/test/modularize/Inputs/InconsistentSubHeader.h
index 92e7d0367dc..ab02b2504b8 100644
--- a/clang-tools-extra/test/modularize/Inputs/InconsistentSubHeader.h
+++ b/clang-tools-extra/test/modularize/Inputs/InconsistentSubHeader.h
@@ -1,11 +1,18 @@
// Set up so TypeInt only defined during InconsistentHeader1.h include.
#ifdef SYMBOL1
#define SYMBOL 1
+#define FUNC_STYLE(a, b) a || b
#endif
#ifdef SYMBOL2
#define SYMBOL 2
+#define FUNC_STYLE(a, b) a &&b
#endif
#if SYMBOL == 1
typedef int TypeInt;
#endif
+
+int var = FUNC_STYLE(1, 0);
+
+#if defined(SYMBOL1)
+#endif
OpenPOWER on IntegriCloud