]> granicus.if.org Git - clang/commitdiff
Fix two more tests that didn't do anything.
authorNico Weber <nicolasweber@gmx.de>
Wed, 26 Sep 2012 09:09:17 +0000 (09:09 +0000)
committerNico Weber <nicolasweber@gmx.de>
Wed, 26 Sep 2012 09:09:17 +0000 (09:09 +0000)
Found with
  find test -type f | xargs grep RUN: | grep '%clang' | grep -iv '%s' | grep -v '%t' | grep -v '\\$'

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164678 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/objc-for.m
test/CodeGen/fold-const-declref.c

index 52a55b07db5d717750ab23e7a5394e7920cde0e2..1561ef8ddf852ac8d883a1542f576c4620d9c5da 100644 (file)
@@ -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);
 
index 5a7ba8e26a77dec5cc4107f57a49c92973d7bf1c..f49611cda79ae3b55c8a6924101b9dffab184c11 100644 (file)
@@ -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}}
 }