2011-06-01 13:43:53 +08:00
|
|
|
// RUN: mkdir -p %t.dir
|
|
|
|
// RUN: echo '#include "header2.h"' > %t.dir/header1.h
|
|
|
|
// RUN: echo > %t.dir/header2.h
|
|
|
|
// RUN: cp %s %t.dir/t.c
|
|
|
|
// RUN: %clang_cc1 -x c-header %t.dir/header1.h -emit-pch -o %t.pch
|
|
|
|
// RUN: echo >> %t.dir/header2.h
|
2013-07-05 00:16:58 +08:00
|
|
|
// RUN: not %clang_cc1 %t.dir/t.c -include-pch %t.pch -fsyntax-only 2>&1 | FileCheck %s
|
2011-06-01 13:43:53 +08:00
|
|
|
|
|
|
|
#include "header2.h"
|
|
|
|
|
2013-03-09 04:42:38 +08:00
|
|
|
// CHECK: fatal error: file {{.*}} has been modified since the precompiled header {{.*}} was built
|
2013-01-25 19:07:42 +08:00
|
|
|
// REQUIRES: shell
|