llvm-project/clang/test/FixIt/fixit-punctuator-spelling.cpp
Ross Kirsling 2cb32e2940
[Clang] Fix fix-it hint regression from #143460 (#144069)
Following #143460, `:` began displaying as `colon` in the fix-it hint
for a `case` with a missing colon, as is visible in the description of
(the separate bug) #144052.

This PR simply reverts a line that didn't need to be changed.
2025-06-14 15:03:23 +02:00

11 lines
287 B
C++

// RUN: %clang_cc1 -fsyntax-only -verify %s
// RUN: not %clang_cc1 -fsyntax-only -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
void f(int x) {
switch (x) {
case 1 // expected-error {{expected ':' after 'case'}}
break;
}
}
// CHECK: fix-it:"{{.*}}":{6:11-6:11}:":"