From: Eric Christopher Date: Thu, 20 Sep 2018 17:22:43 +0000 (+0000) Subject: Add testcases for r342667. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d978d76f50ffe7ac9498c3aa0ebc885c07a80ca0;p=clang Add testcases for r342667. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342668 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Preprocessor/include-leading-nonalpha-no-suggest.c b/test/Preprocessor/include-leading-nonalpha-no-suggest.c new file mode 100644 index 0000000000..0d7dd1aea3 --- /dev/null +++ b/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/test/Preprocessor/include-leading-nonalpha-suggest.c b/test/Preprocessor/include-leading-nonalpha-suggest.c new file mode 100644 index 0000000000..98ac862838 --- /dev/null +++ b/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'?}}