Author: nico
Date: Wed Sep 26 04:09:17 2012
New Revision: 164678

URL: http://llvm.org/viewvc/llvm-project?rev=164678&view=rev
Log:
Fix two more tests that didn't do anything.

Found with
  find test -type f | xargs grep RUN: | grep '%clang' | grep -iv '%s' | grep -v 
'%t' | grep -v '\\$'


Modified:
    cfe/trunk/test/Analysis/objc-for.m
    cfe/trunk/test/CodeGen/fold-const-declref.c

Modified: cfe/trunk/test/Analysis/objc-for.m
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/objc-for.m?rev=164678&r1=164677&r2=164678&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/objc-for.m (original)
+++ cfe/trunk/test/Analysis/objc-for.m Wed Sep 26 04:09:17 2012
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -analyze 
-analyzer-checker=osx.cocoa.Loops,debug.ExprInspection -verify
+// RUN: %clang_cc1 -analyze 
-analyzer-checker=osx.cocoa.Loops,debug.ExprInspection -verify %s
 
 void clang_analyzer_eval(int);
 

Modified: cfe/trunk/test/CodeGen/fold-const-declref.c
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/fold-const-declref.c?rev=164678&r1=164677&r2=164678&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/fold-const-declref.c (original)
+++ cfe/trunk/test/CodeGen/fold-const-declref.c Wed Sep 26 04:09:17 2012
@@ -1,9 +1,9 @@
-// RUN: %clang_cc1 -verify -emit-llvm-only
+// RUN: %clang_cc1 -verify -emit-llvm-only %s
 
 // PR7242: Check that this doesn't crash.
 int main(void)
 {
   int __negative = 1;
   const int __max = __negative && 0 ;
-  __max / 0;
+  __max / 0;  // expected-warning{{expression result unused}} 
expected-warning{{division by zero is undefined}}
 }


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to