Add testcases for r342667.
authorEric Christopher <echristo@gmail.com>
Thu, 20 Sep 2018 17:22:43 +0000 (17:22 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 20 Sep 2018 17:22:43 +0000 (17:22 +0000)
llvm-svn: 342668

clang/test/Preprocessor/include-leading-nonalpha-no-suggest.c [new file with mode: 0644]
clang/test/Preprocessor/include-leading-nonalpha-suggest.c [new file with mode: 0644]

diff --git a/clang/test/Preprocessor/include-leading-nonalpha-no-suggest.c b/clang/test/Preprocessor/include-leading-nonalpha-no-suggest.c
new file mode 100644 (file)
index 0000000..0d7dd1a
--- /dev/null
@@ -0,0 +1,3 @@
+// RUN: %clang_cc1 %s -verify
+
+#include "/non_existing_file_to_include.h" // expected-error {{'/non_existing_file_to_include.h' file not found}}
diff --git a/clang/test/Preprocessor/include-leading-nonalpha-suggest.c b/clang/test/Preprocessor/include-leading-nonalpha-suggest.c
new file mode 100644 (file)
index 0000000..98ac862
--- /dev/null
@@ -0,0 +1,3 @@
+// RUN: %clang_cc1 %s -verify
+
+#include "/empty_file_to_include.h" // expected-error {{'/empty_file_to_include.h' file not found, did you mean 'empty_file_to_include.h'?}}