blob: e229dd4aa734c7c4cbe4049cf8bd06660abe22ae [file] [log] [blame]
Eli Friedman55f9bdd2009-11-14 08:51:33 +00001// RUN: clang-cc -emit-llvm-only -verify %s
2
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();
6int y = x() && 0;