[clang] [clang-tools-extra] [Clang] [C2y] Implement N3355 ‘NamedLoops’ (PR #152870)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 19 08:40:16 PDT 2025


================
@@ -0,0 +1,147 @@
+// RUN: %clang_cc1 -std=c2y -verify -fsyntax-only -fblocks %s
+// RUN: %clang_cc1 -std=c23 -verify -fsyntax-only -fblocks -fnamed-loops %s
+// RUN: %clang_cc1 -x c++ -verify -fsyntax-only -fblocks -fnamed-loops %s
+
+void f1() {
+  l1: while (true) {
+    break l1;
----------------
shafik wrote:

What are we trying to demonstrate with the break followed by the continue? In this and the following code? Maybe a comment would help?

https://github.com/llvm/llvm-project/pull/152870


More information about the cfe-commits mailing list