summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/expr.cpp')
-rw-r--r--test/CodeGenCXX/expr.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/CodeGenCXX/expr.cpp b/test/CodeGenCXX/expr.cpp
index ae5b0e6..4dc97c4 100644
--- a/test/CodeGenCXX/expr.cpp
+++ b/test/CodeGenCXX/expr.cpp
@@ -1,5 +1,12 @@
// RUN: clang-cc -emit-llvm -x c++ < %s
-void f(int x) {
+void test0(int x) {
if (x != 0) return;
}
+
+
+// PR5211
+void test1() {
+ char *xpto;
+ while ( true && xpto[0] );
+}
OpenPOWER on IntegriCloud