xref: /llvm-project/clang/test/Index/preamble-conditionals-inverted.cpp (revision 4d1eb2d5cb97b99fc0d8559661a7b569dc8ecc90)
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 --implicit-check-not "error:"
4 #ifdef FOO_H
5 
foo()6 void foo() {}
7 
8 #endif
9 
foo()10 int foo() { return 0; }
11