diff options
Diffstat (limited to 'clang/test/CodeGen/fold-const-declref.c')
| -rw-r--r-- | clang/test/CodeGen/fold-const-declref.c | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/clang/test/CodeGen/fold-const-declref.c b/clang/test/CodeGen/fold-const-declref.c new file mode 100644 index 0000000..5a7ba8e --- /dev/null +++ b/clang/test/CodeGen/fold-const-declref.c @@ -0,0 +1,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; +} | 
