llvm-project/clang/test/CodeCompletion/crash-if-directive.cpp

7 lines
175 B
C++

#define FOO(X) X
#if FOO(
#elif FOO(
#endif
// RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:2:9 %s
// RUN: not %clang_cc1 -fsyntax-only -code-completion-at=%s:3:11 %s