diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:37 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:11:37 +0000 |
commit | 461a67fa15370a9ec88f8f8a240bf7c123bb2029 (patch) | |
tree | 6942083d7d56bba40ec790a453ca58ad3baf6832 /test/Index/preamble-conditionals-inverted.cpp | |
parent | 75c3240472ba6ac2669ee72ca67eb72d4e2851fc (diff) |
Notes
Diffstat (limited to 'test/Index/preamble-conditionals-inverted.cpp')
-rw-r--r-- | test/Index/preamble-conditionals-inverted.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Index/preamble-conditionals-inverted.cpp b/test/Index/preamble-conditionals-inverted.cpp new file mode 100644 index 0000000000000..f5cf1205e37dd --- /dev/null +++ b/test/Index/preamble-conditionals-inverted.cpp @@ -0,0 +1,10 @@ +// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 \ +// RUN: local -std=c++14 %s 2>&1 \ +// RUN: | FileCheck %s --implicit-check-not "error:" +#ifdef FOO_H + +void foo() {} + +#endif + +int foo() { return 0; } |