2012-09-26 17:09:17 +08:00
|
|
|
// RUN: %clang_cc1 -verify -emit-llvm-only %s
|
2010-09-06 08:10:32 +08:00
|
|
|
|
|
|
|
// PR7242: Check that this doesn't crash.
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
int __negative = 1;
|
|
|
|
const int __max = __negative && 0 ;
|
2012-09-26 17:09:17 +08:00
|
|
|
__max / 0; // expected-warning{{expression result unused}} expected-warning{{division by zero is undefined}}
|
2010-09-06 08:10:32 +08:00
|
|
|
}
|