blob: 7eb4a7d5aa79345f54c89d9310982512c3741c89 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-llvm-only -verify %s
Eli Friedman55f9bdd2009-11-14 08:51:33 +00002
3// Make sure we don't crash generating y; its value is constant, but the
4// initializer has side effects, so EmitConstantExpr should fail.
5int x();
Chris Lattner90a8f272010-07-13 19:41:32 +00006int y = x() && 0; // expected-warning {{use of logical && with constant operand}}