llvm-for-llvmta/tools/clang/test/CodeGen/fold-const-declref.c
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

10 lines
280 B
C

// 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}}
}