summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/missing-system-header.h
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-08-30 23:07:51 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-08-30 23:07:51 +0000
commit3781a36238ef3825e3cf559f1ee4eaa1d719a683 (patch)
tree4233bfaa6a034da26ee12ec45c770fabcbdbc515 /clang/test/Preprocessor/missing-system-header.h
parenta45c20b0492633fa346720c15a0b62ea166fd84d (diff)
downloadbcm5719-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/missing-system-header.h')
-rw-r--r--clang/test/Preprocessor/missing-system-header.h2
1 files changed, 2 insertions, 0 deletions
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}}
OpenPOWER on IntegriCloud