diff options
author | Taewook Oh <twoh@fb.com> | 2017-02-21 22:30:55 +0000 |
---|---|---|
committer | Taewook Oh <twoh@fb.com> | 2017-02-21 22:30:55 +0000 |
commit | f344a3732129770164f362006a4198ad395b81f0 (patch) | |
tree | 25e90585eff87bf3c95799c0d0c34b72fde9454f /test/Lexer | |
parent | a03b5e37f1f67255c5cee675150e7defd943dade (diff) |
Fix for pr31836 - pp_nonportable_path on absolute paths: broken delimiters
Summary: This is a patch for PR31836. As the bug replaces the path separators in the included file name with the characters following them, the test script makes sure that there's no "Ccase-insensitive-include-pr31836.h" in the warning message.
Reviewers: rsmith, eric_niebler
Reviewed By: eric_niebler
Subscribers: karies, cfe-commits
Differential Revision: https://reviews.llvm.org/D30000
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295779 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer')
-rw-r--r-- | test/Lexer/case-insensitive-include-pr31836.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Lexer/case-insensitive-include-pr31836.sh b/test/Lexer/case-insensitive-include-pr31836.sh new file mode 100644 index 0000000000..a419f26faf --- /dev/null +++ b/test/Lexer/case-insensitive-include-pr31836.sh @@ -0,0 +1,9 @@ +// REQUIRES: case-insensitive-filesystem +// UNSUPPORTED: system-windows + +// RUN: mkdir -p %T +// RUN: touch %T/case-insensitive-include-pr31836.h +// RUN: echo "#include \"%T/Case-Insensitive-Include-Pr31836.h\"" | %clang_cc1 -E - 2>&1 | FileCheck %s + +// CHECK: warning: non-portable path to file +// CHECK-SAME: /case-insensitive-include-pr31836.h |