1 // RUN: not %clang_cc1 %s 2>&1 | FileCheck -check-prefix=WITH-FIXIT %s 2 // RUN: not %clang_cc1 -fno-diagnostics-fixit-info %s 2>&1 | FileCheck -check-prefix=WITHOUT-FIXIT %s 3 4 struct Foo { 5 int x; 6 } 7 // WITH-FIXIT: error: expected ';' after struct 8 // WITH-FIXIT-NEXT: } 9 // WITH-FIXIT-NEXT: ^ 10 // WITH-FIXIT-NEXT: ; 11 12 // WITHOUT-FIXIT: error: expected ';' after struct 13 // WITHOUT-FIXIT-NEXT: } 14 // WITHOUT-FIXIT-NEXT: ^ 15 // WITHOUT-FIXIT-NOT: ; 16 17