[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Index / preamble-conditionals-crash.cpp
blob6b18c87d19f94f2b2196dab8674fe251688a1f26
1 #ifndef HEADER_GUARD
3 #define FOO int aba;
4 FOO
6 #endif
7 // RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 \
8 // RUN: local -std=c++14 %s 2>&1 \
9 // RUN: | FileCheck %s --implicit-check-not "libclang: crash detected" \
10 // RUN: --implicit-check-not "error:"
11 // CHECK: macro expansion=FOO:3:9 Extent=[4:1 - 4:4]
12 // CHECK: VarDecl=aba:4:1 (Definition) Extent=[4:1 - 4:4]