Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / PCH / modified-header-error.c
bloba6b0475e18e875362205e817b4a37f61288fd6ca
1 // RUN: mkdir -p %t.dir
2 // RUN: echo '#include "header2.h"' > %t.dir/header1.h
3 // RUN: echo > %t.dir/header2.h
4 // RUN: cp %s %t.dir/t.c
5 // RUN: %clang_cc1 -x c-header %t.dir/header1.h -emit-pch -o %t.pch
6 // RUN: echo >> %t.dir/header2.h
7 // RUN: not %clang_cc1 %t.dir/t.c -include-pch %t.pch -fsyntax-only 2>&1 | FileCheck %s
9 #include "header2.h"
11 // CHECK: fatal error: file {{.*}} has been modified since the precompiled header {{.*}} was built