diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2011-08-30 23:07:51 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2011-08-30 23:07:51 +0000 |
| commit | 3781a36238ef3825e3cf559f1ee4eaa1d719a683 (patch) | |
| tree | 4233bfaa6a034da26ee12ec45c770fabcbdbc515 /clang/test/Preprocessor | |
| parent | a45c20b0492633fa346720c15a0b62ea166fd84d (diff) | |
| download | bcm5719-llvm-3781a36238ef3825e3cf559f1ee4eaa1d719a683.tar.gz bcm5719-llvm-3781a36238ef3825e3cf559f1ee4eaa1d719a683.zip | |
Change err_pp_file_not_found back to an Error; when it's a Warning, we suppress it in system headers. And it is not a good idea to suppress it in system headers. (This was originally changed in r134996 to implement -MG.)
Fixes <rdar://10041960>. And also brings down the number of warnings without a flag by one :)
llvm-svn: 138842
Diffstat (limited to 'clang/test/Preprocessor')
| -rw-r--r-- | clang/test/Preprocessor/missing-system-header.c | 2 | ||||
| -rw-r--r-- | clang/test/Preprocessor/missing-system-header.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/missing-system-header.c b/clang/test/Preprocessor/missing-system-header.c new file mode 100644 index 00000000000..69cb1314eae --- /dev/null +++ b/clang/test/Preprocessor/missing-system-header.c @@ -0,0 +1,2 @@ +// RUN: %clang_cc1 -verify -fsyntax-only %s +#include "missing-system-header.h" diff --git a/clang/test/Preprocessor/missing-system-header.h b/clang/test/Preprocessor/missing-system-header.h new file mode 100644 index 00000000000..393ab2b5c97 --- /dev/null +++ b/clang/test/Preprocessor/missing-system-header.h @@ -0,0 +1,2 @@ +#pragma clang system_header +#include "not exist" // expected-error {{file not found}} |

