summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Misc/warning-flags.c3
-rw-r--r--clang/test/Preprocessor/missing-system-header.c2
-rw-r--r--clang/test/Preprocessor/missing-system-header.h2
3 files changed, 5 insertions, 2 deletions
diff --git a/clang/test/Misc/warning-flags.c b/clang/test/Misc/warning-flags.c
index e29fbeadf9a..a911cbb27ee 100644
--- a/clang/test/Misc/warning-flags.c
+++ b/clang/test/Misc/warning-flags.c
@@ -17,7 +17,7 @@ This test serves two purposes:
The list of warnings below should NEVER grow. It should gradually shrink to 0.
-CHECK: Warnings without flags (313):
+CHECK: Warnings without flags (312):
CHECK-NEXT: auto_storage_class
CHECK-NEXT: backslash_newline_space
CHECK-NEXT: charize_microsoft_ext
@@ -253,7 +253,6 @@ CHECK-NEXT: warn_pointer_attribute_wrong_type
CHECK-NEXT: warn_pp_convert_lhs_to_positive
CHECK-NEXT: warn_pp_convert_rhs_to_positive
CHECK-NEXT: warn_pp_expr_overflow
-CHECK-NEXT: warn_pp_file_not_found
CHECK-NEXT: warn_pp_line_decimal
CHECK-NEXT: warn_pragma_align_expected_equal
CHECK-NEXT: warn_pragma_align_invalid_option
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}}
OpenPOWER on IntegriCloud