llvm-project/clang/test/Preprocessor
Chris Lattner 2edf0fcb75 fix PR3579: __LINE__ expands to the presumed location of the
*end* of a macro instantiation, not the start of it.  This is
really all about bug-for-bug compatibility with GCC, but not
doing this breaks the FreeBSD kernel.

llvm-svn: 64603
2009-02-15 21:06:15 +00:00
..
_Pragma-dependency.c track "just a little more" location information for macro instantiations. 2009-02-15 20:52:18 +00:00
_Pragma-location.c new testcase 2006-07-02 22:59:48 +00:00
_Pragma-physloc.c new testcase 2006-07-02 22:27:09 +00:00
_Pragma-poison.c Make this testcase pass the right arg. 2006-08-06 18:31:20 +00:00
_Pragma-syshdr.c new testcase 2006-07-02 21:23:03 +00:00
_Pragma-syshdr2.c new testcase 2006-07-03 05:25:52 +00:00
assembler-with-cpp.S Add test case for __ASSEMBLER__ definition. 2008-12-01 19:23:47 +00:00
builtin_line.c fix PR3579: __LINE__ expands to the presumed location of the 2009-02-15 21:06:15 +00:00
c99-6_10_3_3_p4.c new testcase 2006-07-29 07:19:41 +00:00
c99-6_10_3_4_p5.c testcase from the c99 standard 2006-07-29 06:48:55 +00:00
c99-6_10_3_4_p6.c new testcase 2006-07-29 06:59:47 +00:00
c99-6_10_3_4_p7.c new testcase 2006-07-29 07:08:39 +00:00
c99-6_10_3_4_p9.c new testcase 2006-07-29 07:19:41 +00:00
clang_headers.c Fix limits.h for linux, as glibc does a #include_next unless 2009-02-12 23:06:31 +00:00
comment_save.c Testcases for comment saving modes, -C and -CC. 2006-07-29 06:41:10 +00:00
comment_save_if.c new testcase 2006-10-27 05:43:33 +00:00
comment_save_macro.c Testcases for comment saving modes, -C and -CC. 2006-07-29 06:41:10 +00:00
cxx_and.cpp Add support for C++ operator keywords. Patch by Bill Wendling. 2006-11-21 17:23:33 +00:00
cxx_bitand.cpp Add support for C++ operator keywords. Patch by Bill Wendling. 2006-11-21 17:23:33 +00:00
cxx_bitor.cpp Add support for C++ operator keywords. Patch by Bill Wendling. 2006-11-21 17:23:33 +00:00
cxx_compl.cpp Add support for C++ operator keywords. Patch by Bill Wendling. 2006-11-21 17:23:33 +00:00
cxx_not.cpp Add support for C++ operator keywords. Patch by Bill Wendling. 2006-11-21 17:23:33 +00:00
cxx_not_eq.cpp Add support for C++ operator keywords. Patch by Bill Wendling. 2006-11-21 17:23:33 +00:00
cxx_oper_keyword.cpp improve this test to also check -fno-operator-keywords. 2006-12-04 18:00:36 +00:00
cxx_oper_spelling.cpp check minutia of the standard. 2006-11-21 17:31:32 +00:00
cxx_or.cpp Add support for C++ operator keywords. Patch by Bill Wendling. 2006-11-21 17:23:33 +00:00
cxx_true.cpp Fix run line 2007-04-10 07:06:36 +00:00
cxx_xor.cpp Add support for C++ operator keywords. Patch by Bill Wendling. 2006-11-21 17:23:33 +00:00
disabled-cond-diags.c Initial checkin of testsuite 2006-06-18 05:42:02 +00:00
dump_macros.c Add an implementation of -dM that follows GCC closely enough to permit 2009-02-06 06:45:26 +00:00
dumptokens_phyloc.c Introduce a new PresumedLoc class to represent the concept of a location 2009-01-27 07:57:44 +00:00
expr_comma.c Multiple tests in a single test file must be linked with '&&'. 2008-06-12 12:40:02 +00:00
expr_invalid_tok.c Multiple tests in a single test file must be linked with '&&'. 2008-06-12 12:40:02 +00:00
expr_liveness.c fix rdar://6505352 - Bogus warning with -WUndef, a case 2009-01-18 21:18:58 +00:00
expr_usual_conversions.c Fix PR2279 part C: shifts don't perform the UACs, thanks to Neil 2008-05-04 18:25:32 +00:00
extension-warning.c - Implement __block. 2008-09-02 18:50:17 +00:00
file_to_include.h utility file 2006-06-18 07:18:04 +00:00
function_macro_file.c Correctly respect C99 5.1.1.2p4 when searching for the first '(' of 2007-07-19 00:07:36 +00:00
function_macro_file.h Correctly respect C99 5.1.1.2p4 when searching for the first '(' of 2007-07-19 00:07:36 +00:00
hash_line.c Initial checkin of testsuite 2006-06-18 05:42:02 +00:00
hash_space.c Initial checkin of testsuite 2006-06-18 05:42:02 +00:00
header_lookup1.c testcase for my previous patch. 2008-09-26 18:07:51 +00:00
if_warning.c add support for -Wundef. 2008-01-23 17:19:46 +00:00
ifdef-recover.c Use the -E option when invoking clang. Only the preprocessor is 2008-03-21 07:02:04 +00:00
import_self.c fix a bug Steve noticed, where a #import of the main file itself would fail. 2007-11-15 19:07:47 +00:00
include-directive1.c Fix PR3464 by searching for headers from the predefines 2009-02-04 19:45:07 +00:00
include-directive2.c smaller header. 2009-02-04 19:47:38 +00:00
include-directive3.c Fix PR3464 by searching for headers from the predefines 2009-02-04 19:45:07 +00:00
indent_macro.c Initial checkin of testsuite 2006-06-18 05:42:02 +00:00
line-directive.c Implement handling of file entry/exit notifications from GNU 2009-02-04 06:25:26 +00:00
macro_arg_keyword.c new testcase 2006-10-20 05:08:12 +00:00
macro_defined.c new testcase 2006-07-03 01:26:39 +00:00
macro_disable.c new testcase 2006-07-19 08:13:21 +00:00
macro_disable2.c new testcase 2006-07-19 08:13:21 +00:00
macro_disable3.c new testcase 2006-07-27 06:17:55 +00:00
macro_disable4.c Fix PR1820, an incredibly subtle macro expansion bug that Neil discovered. 2007-11-23 06:50:21 +00:00
macro_expand.c new testcase 2006-10-06 02:59:40 +00:00
macro_expandloc.c new testcase 2006-06-26 01:25:11 +00:00
macro_expandloc2.c New testcase 2006-06-26 01:26:26 +00:00
macro_fn_comma_swallow.c new testcase for the GNU comma swallow extension. 2006-07-29 04:39:12 +00:00
macro_fn_disable_expand.c Make this testcase more interesting, actually add a RUN line. 2006-07-19 06:34:41 +00:00
macro_fn_lparen_scan.c new tests 2006-07-11 05:03:43 +00:00
macro_fn_lparen_scan2.c Tweak expected results do to paste avoidance. 2006-07-28 06:55:35 +00:00
macro_fn_placemarker.c new testcase for placemarker handling. 2006-07-29 04:09:49 +00:00
macro_fn_preexpand.c Make this testcase more interesting, actually add run lines :) 2006-07-19 05:48:15 +00:00
macro_fn_varargs_iso.c new testcase for __VA_ARGS__ 2006-07-29 04:03:59 +00:00
macro_fn_varargs_named.c Multiple tests in a single test file must be linked with '&&'. 2008-06-12 12:40:02 +00:00
macro_not_define.c new testcase 2006-07-19 08:13:21 +00:00
macro_paste_bad.c Implement basic token pasting (## operator). This implements 2006-07-19 05:42:48 +00:00
macro_paste_bcpl_comment.c Move LexingRawMode handling of file EOF out of the preprocessor into the 2006-07-19 06:31:49 +00:00
macro_paste_c_block_comment.c Avoid testing / ## * in the lexer. This will cause an unhelpful error message 2006-07-19 06:32:35 +00:00
macro_paste_commaext.c Multiple tests in a single test file must be linked with '&&'. 2008-06-12 12:40:02 +00:00
macro_paste_empty.c Add test for pasting empty formals 2006-07-28 05:13:36 +00:00
macro_paste_hard.c Add test for pasting empty formals 2006-07-28 05:13:36 +00:00
macro_paste_hashhash.c new testcase 2006-07-19 08:01:28 +00:00
macro_paste_mscomment.c fix this test. 2008-03-22 00:07:50 +00:00
macro_paste_none.c new testcase 2006-07-29 06:44:19 +00:00
macro_paste_simple.c add runline, make this test real. 2007-12-12 06:20:18 +00:00
macro_paste_spacing.c Fix test/Preprocessor/macro_paste_spacing.c 2006-07-19 05:45:55 +00:00
macro_rescan.c Tweak expected results do to paste avoidance. 2006-07-28 06:55:35 +00:00
macro_rescan2.c new testcase from c99 rationale 2006-07-19 08:04:22 +00:00
macro_rescan_varargs.c new testcase 2006-07-29 07:32:40 +00:00
macro_rparen_scan.c new testcase 2006-07-19 06:40:07 +00:00
macro_rparen_scan2.c add run line 2007-12-12 06:20:40 +00:00
macro_space.c Initial checkin of testsuite 2006-06-18 05:42:02 +00:00
mi_opt.c Fix a nasty corner case that Neil noticed in PR1900, where we would 2008-01-07 19:50:27 +00:00
mi_opt.h Fix a nasty corner case that Neil noticed in PR1900, where we would 2008-01-07 19:50:27 +00:00
output_paste_avoid.c Multiple tests in a single test file must be linked with '&&'. 2008-06-12 12:40:02 +00:00
paste_bad.c make this harder 2006-10-25 06:21:19 +00:00
poison.c New testcases 2006-06-25 05:40:49 +00:00
poison_expansion.c New testcases 2006-06-25 05:40:49 +00:00
pr2086.c Fix PR2086. 2008-02-25 19:03:15 +00:00
pr2086.h Fix PR2086. 2008-02-25 19:03:15 +00:00
pragma_microsoft.c Make -E mode propagate #pragma comment's into the output. 2009-01-16 19:25:54 +00:00
pragma_unknown.c new testcase 2006-07-02 21:50:31 +00:00
print_line_track.c add testcase for PR3437 and r63405 2009-01-30 18:49:16 +00:00
skipping_unclean.c Fix a bug that I noticed by inspection. 2009-01-27 05:34:03 +00:00
stringize_misc.c new testcase 2006-07-30 07:20:09 +00:00
stringize_space.c new testcase 2006-07-15 06:53:24 +00:00
stringize_space2.c Fix a stringizing bug that Neil noticed. We should preprocess this: 2007-07-19 16:11:58 +00:00
undef-error.c switch to using -verify 2008-10-04 19:43:25 +00:00
unterminated.c testcase for PR3096 2008-11-21 06:19:48 +00:00