teak-llvm/clang/test/FixIt/fixit-eof-space.c
Benjamin Kramer 851f310cec [edit] Don't hit an assert when trying to delete a trailing space at EOF
The buffer is guaranteed to be zero-terminated so we can just
circumvent the check. Found by afl-fuzz.

llvm-svn: 233496
2015-03-29 18:07:29 +00:00

9 lines
385 B
C

// RUN: not %clang_cc1 %s -fsyntax-only -fdiagnostics-parseable-fixits 2>&1 | FileCheck %s
// vim: set binary noeol:
// This file intentionally ends without a \n on the last line. Make sure your
// editor doesn't add one. The trailing space is also intentional.
// CHECK: :9:8: warning: duplicate 'extern' declaration specifier
// CHECK: fix-it:"{{.*}}":{9:8-9:15}:""
extern extern