hanchenye-llvm-project/clang/test/Preprocessor
Chris Lattner 99ca091b9c Warn when performing 'usual' conversions that require a sign change. This
implements test/Preprocessor/expr_usual_conversions.c, which produces this
output:

expr_usual_conversions.c:5:10: warning: left side of operator converted from negative value to unsigned: -42 to 18446744073709551574
#if (-42 + 0U) / -2
         ^
expr_usual_conversions.c:5:16: warning: right side of operator converted from negative value to unsigned: -2 to 18446744073709551614
#if (-42 + 0U) / -2
               ^

llvm-svn: 39406
2007-04-11 04:14:45 +00:00
..
_Pragma-dependency.c new testcase 2006-07-03 06:28:30 +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
builtin_line.c Fix the predicate to be more strict 2006-06-29 16:43:46 +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
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
define_other_target.c new testcase 2006-10-14 19:53:37 +00:00
define_target.c new testcase for #define_target. 2006-10-14 19:09:13 +00:00
disabled-cond-diags.c Initial checkin of testsuite 2006-06-18 05:42:02 +00:00
expr_liveness.c new testcase 2007-04-10 05:25:39 +00:00
expr_usual_conversions.c Warn when performing 'usual' conversions that require a sign change. This 2007-04-11 04:14:45 +00:00
file_to_include.h utility file 2006-06-18 07:18:04 +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
includeexpand.c new testcase 2006-06-18 07:16:30 +00:00
indent_macro.c Initial checkin of testsuite 2006-06-18 05:42:02 +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_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 new testcase 2006-07-29 01:24:46 +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_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_none.c new testcase 2006-07-29 06:44:19 +00:00
macro_paste_simple.c Implement basic token pasting (## operator). This implements 2006-07-19 05:42:48 +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 new testcase 2006-07-30 07:33:49 +00:00
macro_space.c Initial checkin of testsuite 2006-06-18 05:42:02 +00:00
output_paste_avoid.c new testcase for paste avoidance 2006-07-28 06:54:07 +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
pragma_unknown.c new testcase 2006-07-02 21:50:31 +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