blob: 65ab3bb1262df5fb7a3768a42fd24b4497eb2db6 [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();
6int y = x() && 0;