[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / PCH / modified-header-crash.c
blob39b2530a32f28fd890184a3c90d3a2bf0bc9a75c
1 // Don't crash.
3 // RUN: cat %S/modified-header-crash.h > %t.h
4 // RUN: %clang_cc1 -DCAKE -x c-header %t.h -emit-pch -o %t
5 // RUN: echo 'int foobar;' >> %t.h
6 // RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only
8 // FIXME: It is intended to suppress this on win32.
9 // REQUIRES: ansi-escape-sequences
11 void f(void) {
12 foo = 3;