summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/fold-const-declref.c
blob: 5a7ba8e26a77dec5cc4107f57a49c92973d7bf1c (about) (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang_cc1 -verify -emit-llvm-only

// PR7242: Check that this doesn't crash.
int main(void)
{
  int __negative = 1;
  const int __max = __negative && 0 ;
  __max / 0;
}