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