llvm-project/clang/test/Preprocessor/include-nonalpha-no-crash.c
Haojian Wu 1743ebe369 [Preprocessor] Fix a crash when handling non-alpha include header.
Summary: the crash is casued by an assertion in StringRef.
(llvm::StringRef::front() const: Assertion `!empty()' failed.)

Reviewers: sammccall

Subscribers: jsji, cfe-commits

Differential Revision: https://reviews.llvm.org/D52721

llvm-svn: 343481
2018-10-01 14:38:43 +00:00

4 lines
87 B
C

// RUN: %clang_cc1 %s -verify
#include "./" // expected-error {{'./' file not found}}