xref: /llvm-project/clang/test/Index/preamble-conditionals-inverted-with-error.cpp (revision 8f738ac6d469ce3ebefe3d1c9dadcc1eda56a61c)
1 // RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 \
2 // RUN:                                       local -std=c++14 %s 2>&1 \
3 // RUN: | FileCheck %s
4 #ifdef FOO_H
5 
6 void foo();
7 
8 // CHECK: preamble-conditionals-inverted-with-error.cpp:4:2: error: unterminated conditional directive
9