We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 302bd61 commit 98f9219Copy full SHA for 98f9219
clang/test/FixIt/fixit-macro-expansion-recovery.cpp
@@ -0,0 +1,11 @@
1
+// RUN: %clang_cc1 -std=c++23 -fsyntax-only -verify %s
2
+// RUN: not %clang_cc1 -fdiagnostics-parseable-fixits -std=c++23 %s 2>&1 | FileCheck %s
3
+
4
+#define C(x) case x
5
6
+void t1(int a) {
7
+ switch (a) {
8
+ C(10) // expected-error {{expected ':' after 'case'}}
9
+ }
10
+}
11
+// CHECK: fix-it:"{{.*}}":{[[@LINE-3]]:10-[[@LINE-3]]:10}:":"
0 commit comments