Check in LLVM r95781.
diff --git a/test/CodeGenCXX/expr.cpp b/test/CodeGenCXX/expr.cpp
new file mode 100644
index 0000000..d92cfb4
--- /dev/null
+++ b/test/CodeGenCXX/expr.cpp
@@ -0,0 +1,16 @@
+// RUN: %clang_cc1 -emit-llvm -x c++ < %s
+
+void test0(int x) {
+          if (x != 0) return;
+}
+
+
+// PR5211
+void test1() {
+  char *xpto;
+  while ( true && xpto[0] );
+}
+
+// PR5514
+int a;
+void test2() { ++a+=10; }