Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm-only -verify %s |
Eli Friedman | 55f9bdd | 2009-11-14 08:51:33 +0000 | [diff] [blame] | 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(); | ||||
Chandler Carruth | 0683a14 | 2011-05-31 05:41:42 +0000 | [diff] [blame] | 6 | int y = x() & 0; |