| 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(); | ||||
| 6 | int y = x() && 0; | ||||