From 4a280ff48fd6194d5fe06df21b057d30af93a386 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Wed, 7 Mar 2012 01:51:17 +0000 Subject: [PCH] Mark a PCH file with a flag to indicate if the serialized AST had compiler errors or not. -Control whether ASTReader should reject such a PCH by a boolean flag at ASTReader's creation time. By default, such a PCH file will be rejected with an error when trying to load it. [libclang] Allow clang_saveTranslationUnit to create a PCH file even if compiler errors occurred. -Have libclang API calls accept a PCH that had compiler errors. The general idea is that we want libclang to stay functional even if a PCH had a compiler error. rdar://10976363. llvm-svn: 152192 --- clang/test/Index/werror.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'clang/test/Index/werror.c') diff --git a/clang/test/Index/werror.c b/clang/test/Index/werror.c index 150095d8599..98b602a170c 100644 --- a/clang/test/Index/werror.c +++ b/clang/test/Index/werror.c @@ -7,9 +7,6 @@ void fatal(int); void fatal(float); #endif -// CHECK-FATAL: translation errors - // RUN: c-index-test -write-pch %t.pch -Werror %s -// RUN: not c-index-test -write-pch %t.pch -DFATAL -Werror %s 2>%t.err -// RUN: FileCheck -check-prefix=CHECK-FATAL %s < %t.err +// RUN: c-index-test -write-pch %t.pch -DFATAL -Werror %s -- cgit v1.2.3