Eli Friedman | 274ab90 | 2009-11-14 08:51:33 +0000 | [diff] [blame^] | 1 | // 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. | ||||
5 | int x(); | ||||
6 | int y = x() && 0; |