blob: 768e6de92c0f033104cb9b3d704722b7ad0a055c [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();
Chandler Carruth0683a142011-05-31 05:41:42 +00006int y = x() & 0;