[cfe-commits] r100674 - /cfe/trunk/test/Preprocessor/expr_usual_conversions.c

Chris Lattner sabre at nondot.org
Wed Apr 7 11:43:41 PDT 2010


Author: lattner
Date: Wed Apr  7 13:43:41 2010
New Revision: 100674

URL: http://llvm.org/viewvc/llvm-project?rev=100674&view=rev
Log:
convert to -verify mode.

Modified:
    cfe/trunk/test/Preprocessor/expr_usual_conversions.c

Modified: cfe/trunk/test/Preprocessor/expr_usual_conversions.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/expr_usual_conversions.c?rev=100674&r1=100673&r2=100674&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/expr_usual_conversions.c (original)
+++ cfe/trunk/test/Preprocessor/expr_usual_conversions.c Wed Apr  7 13:43:41 2010
@@ -1,8 +1,9 @@
-// RUN: %clang_cc1 %s -E  2>&1 | grep warning | wc -l | grep 2
+// RUN: %clang_cc1 %s -E -verify
 
 #define INTMAX_MIN (-9223372036854775807LL -1)
 
-#if (-42 + 0U) / -2
+#if (-42 + 0U) /* expected-warning {{left side of operator converted from negative value to unsigned: -42 to 18446744073709551574}} */  \
+  / -2         /* expected-warning {{right side of operator converted from negative value to unsigned: -2 to 18446744073709551614}} */
 foo
 #endif
 





More information about the cfe-commits mailing list