summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/return.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Sema/return.c')
-rw-r--r--clang/test/Sema/return.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Sema/return.c b/clang/test/Sema/return.c
index 423d1a99029..3c5fc79ebdd 100644
--- a/clang/test/Sema/return.c
+++ b/clang/test/Sema/return.c
@@ -208,3 +208,13 @@ int test30() {
typedef void test31_t(int status);
void test31(test31_t *callback __attribute__((noreturn)));
+
+void test32() {
+ ^ (void) { while (1) { } }();
+ ^ (void) { if (j) while (1) { } }();
+ while (1) { }
+}
+
+void test33() {
+ if (j) while (1) { }
+}
OpenPOWER on IntegriCloud