summaryrefslogtreecommitdiffstats
path: root/clang/test/PCH/modified-header-crash.c
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2011-04-28 00:23:49 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2011-04-28 00:23:49 +0000
commit7e92e57b0b9d9af7a24b4877b9959017deaf322b (patch)
tree1079905c69a408da0428d84595bc9634038f1739 /clang/test/PCH/modified-header-crash.c
parent45c30df303e2c3ad4ba1acef90ac4db51daaf451 (diff)
downloadbcm5719-llvm-7e92e57b0b9d9af7a24b4877b9959017deaf322b.tar.gz
bcm5719-llvm-7e92e57b0b9d9af7a24b4877b9959017deaf322b.zip
Fix modified-header-crash.c for read-only source trees
llvm-svn: 130359
Diffstat (limited to 'clang/test/PCH/modified-header-crash.c')
-rw-r--r--clang/test/PCH/modified-header-crash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/PCH/modified-header-crash.c b/clang/test/PCH/modified-header-crash.c
index cb403f0184f..d46f97636d7 100644
--- a/clang/test/PCH/modified-header-crash.c
+++ b/clang/test/PCH/modified-header-crash.c
@@ -1,7 +1,8 @@
// Don't crash.
-// RUN: %clang_cc1 -DCAKE -x c-header %S/modified-header-crash.h -emit-pch -o %t
-// RUN: touch %S/modified-header-crash.h
+// RUN: cp %S/modified-header-crash.h %t.h
+// RUN: %clang_cc1 -DCAKE -x c-header %t.h -emit-pch -o %t
+// RUN: echo >> %t.h
// RUN: not %clang_cc1 %s -include-pch %t -fsyntax-only
// FIXME: On Windows we don't detect that the header was modified ?
OpenPOWER on IntegriCloud