You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
280 B
10 lines
280 B
4 months ago
|
// 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; // expected-warning{{expression result unused}} expected-warning{{division by zero is undefined}}
|
||
|
}
|