mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-24 14:05:49 -04:00

Summary: Fix PR22407, where the Lexer overflows the buffer when parsing #include<\ (end of file after slash) Test Plan: Added a test that will trigger in asan build. This case is also covered by the clang-fuzzer bot. Reviewers: rnk Reviewed By: rnk Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D9489 llvm-svn: 236466
8 lines
233 B
C
8 lines
233 B
C
// RUN: %clang_cc1 %s -verify
|
|
// vim: set binary noeol:
|
|
|
|
// This file intentionally ends without a \n on the last line. Make sure your
|
|
// editor doesn't add one.
|
|
|
|
// expected-error@+1{{expected "FILENAME" or <FILENAME>}}
|
|
#include <\ |