Clang Project

clang_source_code/test/Index/preamble-conditionals-skipping.cpp
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
5#ifdef MYCPLUSPLUS
6extern "C" {
7#endif
8
9#ifdef MYCPLUSPLUS
10}
11#endif
12
13int main()
14{
15    return 0;
16}
17