mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 13:26:08 +00:00

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
13 lines
219 B
C
13 lines
219 B
C
inline int *get_int_ptr(float *fp) {
|
|
return fp;
|
|
}
|
|
|
|
#ifdef FATAL
|
|
void fatal(int);
|
|
void fatal(float);
|
|
#endif
|
|
|
|
// RUN: c-index-test -write-pch %t.pch -Werror %s
|
|
// RUN: c-index-test -write-pch %t.pch -DFATAL -Werror %s
|
|
|