diff options
Diffstat (limited to 'test/Index/preamble-conditionals-inverted-with-error.cpp')
-rw-r--r-- | test/Index/preamble-conditionals-inverted-with-error.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Index/preamble-conditionals-inverted-with-error.cpp b/test/Index/preamble-conditionals-inverted-with-error.cpp new file mode 100644 index 0000000000000..95b0695b87331 --- /dev/null +++ b/test/Index/preamble-conditionals-inverted-with-error.cpp @@ -0,0 +1,8 @@ +// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 \ +// RUN: local -std=c++14 %s 2>&1 \ +// RUN: | FileCheck %s +#ifdef FOO_H + +void foo(); + +// CHECK: preamble-conditionals-inverted-with-error.cpp:4:2: error: unterminated conditional directive |