From d978d76f50ffe7ac9498c3aa0ebc885c07a80ca0 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 20 Sep 2018 17:22:43 +0000 Subject: [PATCH] Add testcases for r342667. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@342668 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Preprocessor/include-leading-nonalpha-no-suggest.c | 3 +++ test/Preprocessor/include-leading-nonalpha-suggest.c | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 test/Preprocessor/include-leading-nonalpha-no-suggest.c create mode 100644 test/Preprocessor/include-leading-nonalpha-suggest.c 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'?}} -- 2.50.1