Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / FixIt / no-diagnostics-fixit-info.c
blob9696a2eb181e391250390a2773befb3b245c31fd
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
4 struct Foo {
5 int x;
7 // WITH-FIXIT: error: expected ';' after struct
8 // WITH-FIXIT-NEXT: }
9 // WITH-FIXIT-NEXT: ^
10 // WITH-FIXIT-NEXT: ;
12 // WITHOUT-FIXIT: error: expected ';' after struct
13 // WITHOUT-FIXIT-NEXT: }
14 // WITHOUT-FIXIT-NEXT: ^
15 // WITHOUT-FIXIT-NOT: ;