================
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+// expected-note@+1 {{to match this '{'}}
+void a(int i) {
+    switch(i) {
+        case 1:
+  // expected-error@+2 {{expected ']'}}
+  // expected-error@+3 {{expected ']'}}
----------------
erichkeane wrote:

This is a particularly awkward one here, It'd be great if we did a look-ahead 
and consumed the first `]` if it was followed by 1 so we didn't get this? 



https://github.com/llvm/llvm-project/pull/187580
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to