summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2018-09-20 17:22:43 +0000
committerEric Christopher <echristo@gmail.com>2018-09-20 17:22:43 +0000
commit8a9b3fe780205fbb94f06e157078b7fd76851e8a (patch)
tree1189beab95d2956901ba0f78b2b0b27fa4d2531b
parent918b47fd4b03595eb1e0f98b0c760d6a05f3467b (diff)
downloadbcm5719-llvm-8a9b3fe780205fbb94f06e157078b7fd76851e8a.tar.gz
bcm5719-llvm-8a9b3fe780205fbb94f06e157078b7fd76851e8a.zip
Add testcases for r342667.
llvm-svn: 342668
-rw-r--r--clang/test/Preprocessor/include-leading-nonalpha-no-suggest.c3
-rw-r--r--clang/test/Preprocessor/include-leading-nonalpha-suggest.c3
2 files changed, 6 insertions, 0 deletions
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
index 00000000000..0d7dd1aea30
--- /dev/null
+++ b/clang/test/Preprocessor/include-leading-nonalpha-no-suggest.c
@@ -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
index 00000000000..98ac862838c
--- /dev/null
+++ b/clang/test/Preprocessor/include-leading-nonalpha-suggest.c
@@ -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'?}}
OpenPOWER on IntegriCloud