diff options
author | Nico Weber <nicolasweber@gmx.de> | 2012-09-26 09:09:17 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2012-09-26 09:09:17 +0000 |
commit | dc32de2d92fe4e68e44406ee9667265103fb89bf (patch) | |
tree | 33f8ca7935081c8fd3bfda36c68c884f61fa9a56 | |
parent | c888133119dece5f3a60a1f02a8a3c3916898206 (diff) |
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 '\\$'
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164678 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Analysis/objc-for.m | 2 | ||||
-rw-r--r-- | test/CodeGen/fold-const-declref.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/Analysis/objc-for.m b/test/Analysis/objc-for.m index 52a55b07db..1561ef8ddf 100644 --- a/test/Analysis/objc-for.m +++ b/test/Analysis/objc-for.m @@ -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); diff --git a/test/CodeGen/fold-const-declref.c b/test/CodeGen/fold-const-declref.c index 5a7ba8e26a..f49611cda7 100644 --- a/test/CodeGen/fold-const-declref.c +++ b/test/CodeGen/fold-const-declref.c @@ -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}} } |