mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 18:16:06 +00:00

Summary: The crash occurs when the first token after a preamble is a macro expansion. Fixed by moving replayPreambleConditionalStack from Parser into Preprocessor. It is now called right after the predefines file is processed. Reviewers: erikjv, bkramer, klimek, yvvan Reviewed By: bkramer Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D36872 llvm-svn: 311330
9 lines
182 B
C++
9 lines
182 B
C++
// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source local %s 2>&1 \
|
|
// RUN: | FileCheck %s --implicit-check-not "error:"
|
|
#ifndef FOO_H
|
|
#define FOO_H
|
|
|
|
void foo();
|
|
|
|
#endif
|