llvm-project/clang/test/Lexer
Chris Lattner 467f6bcfe5 robustify the conflict marker stuff. Don't add 7 twice, which would
make it miss (invalid) things like:
<<<<<<<
>>>>>>>

and crash if 

<<<<<<< 

was at the end of the line.  When we find a >>>>>>> that is not at the
end of the line, make sure to reset Pos so we don't crash on something
like:
<<<<<<< >>>>>>>

This isn't worth making testcases for, since each would require a new file.

rdar://7987078 - signal 11 compiling "<<<<<<<<<<"

llvm-svn: 103968
2010-05-17 20:27:25 +00:00
..
11-27-2007-FloatLiterals.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
badstring_in_if0.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
block_cmt_end.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
c90.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
char-escapes.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
comment-escape.c Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
conflict-marker.c robustify the conflict marker stuff. Don't add 7 twice, which would 2010-05-17 20:27:25 +00:00
constants-ms.c Fixes test. 2010-01-22 22:30:25 +00:00
constants.c At sabre's request, drop the FP bounds diagnostics down to warnings and file 2010-02-26 23:35:57 +00:00
counter.c Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
cxx0x_keyword.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
cxx0x_keyword_as_cxx98.cpp Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
digraph.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
dollar-idents.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
escape_newline.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
gnu_keywords.c Add testcase that I forgot for r101667 for gnu-keywords. 2010-04-18 06:12:13 +00:00
has_feature_cxx0x.cpp Update test function names so as not to use potential keywords. 2010-01-13 08:58:42 +00:00
has_feature_exceptions.cpp Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
has_feature_rtti.cpp Update tests to use %clang instead of 'clang', and forcibly disable use of ' 2009-12-15 22:01:24 +00:00
hexfloat.cpp Do not parse hexadecimal floating point literals in C++0x mode because they are 2010-01-10 23:37:56 +00:00
msdos-cpm-eof.c reimplement r90860, fixing a couple of problems: 2009-12-17 05:29:40 +00:00
multiple-include.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
numeric-literal-trash.c add a bunch of missing prototypes to tests 2010-01-09 20:43:19 +00:00
pragma-mark.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
rdr-6096838-2.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
rdr-6096838.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
token-concat-2.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
token-concat.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
unknown-char.c Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'. 2009-12-15 20:14:24 +00:00
utf-16.c push some source location information down through the compiler, 2010-04-20 20:35:58 +00:00
utf-16.c.txt enhance sourcemgr to detect various UTF BOM's and emit a fatal error 2010-04-20 18:14:03 +00:00