blob: 354fcd4dda538626ae98c1ca8b25e063f2ed1a1b [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -emit-llvm-only -verify %s
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Eli Friedman55f9bdd2009-11-14 08:51:33 +00003
4// Make sure we don't crash generating y; its value is constant, but the
5// initializer has side effects, so EmitConstantExpr should fail.
6int x();
Chandler Carruth0683a142011-05-31 05:41:42 +00007int y = x() & 0;