aboutsummaryrefslogtreecommitdiff
path: root/clang/test/FixIt/fixit-punctuator-spelling.cpp
blob: 3cba0e7b6459463d6b9a7586a95f1d5454304ba1 (plain)
1
2
3
4
5
6
7
8
9
10
// 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}:":"