forked from OSchip/llvm-project
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 '\\$' llvm-svn: 164678
This commit is contained in:
parent
f666b2a547
commit
c05ecd5b17
clang/test
|
@ -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);
|
||||
|
||||
|
|
|
@ -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}}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue