Author: matthewbg
Date: Wed Apr 27 19:23:49 2011
New Revision: 130359
URL: http://llvm.org/viewvc/llvm-project?rev=130359&view=rev
Log:
Fix modified-header-crash.c for read-only source trees
Modified:
cfe/trunk/test/PCH/modified-header-crash.c
Modified: cfe/trunk/test/PCH/modified-header-crash.c
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/PCH/modified-header-crash.c?rev=130359&r1=130358&r2=130359&view=diff
==============================================================================
--- cfe/trunk/test/PCH/modified-header-crash.c (original)
+++ cfe/trunk/test/PCH/modified-header-crash.c Wed Apr 27 19:23:49 2011
@@ -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 ?
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits