summaryrefslogtreecommitdiff
path: root/test/CodeGen/dostmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/dostmt.c')
-rw-r--r--test/CodeGen/dostmt.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/CodeGen/dostmt.c b/test/CodeGen/dostmt.c
index 1a2e02a78e6b..54973dc99b6e 100644
--- a/test/CodeGen/dostmt.c
+++ b/test/CodeGen/dostmt.c
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 %s -emit-llvm -o -
+// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
int bar();
int test0() {
@@ -66,5 +66,11 @@ void test5() {
do { break; } while(0);
}
-
+// PR14191
+void test6f(void);
+void test6() {
+ do {
+ } while (test6f(), 0);
+ // CHECK: call void @test6f()
+}