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