mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 14:28:54 -04:00

When a preamble ends in a conditional preprocessor block that is being skipped, the preprocessor needs to continue skipping that block when the preamble is used. This fixes PR34570. llvm-svn: 317308
17 lines
301 B
C++
17 lines
301 B
C++
// RUN: env CINDEXTEST_EDITING=1 c-index-test -test-load-source-reparse 5 \
|
|
// RUN: local -std=c++14 %s 2>&1 \
|
|
// RUN: | FileCheck %s --implicit-check-not "error:"
|
|
|
|
#ifdef MYCPLUSPLUS
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef MYCPLUSPLUS
|
|
}
|
|
#endif
|
|
|
|
int main()
|
|
{
|
|
return 0;
|
|
}
|