Add a test for -fno-diagnostics-fixit-info

llvm-svn: 197450
This commit is contained in:
Dmitri Gribenko 2013-12-17 01:19:19 +00:00
parent 50b8302c55
commit 3fb18bbd34
1 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,16 @@
// RUN: not %clang_cc1 %s 2>&1 | FileCheck -check-prefix=WITH-FIXIT %s
// RUN: not %clang_cc1 -fno-diagnostics-fixit-info %s 2>&1 | FileCheck -check-prefix=WITHOUT-FIXIT %s
struct Foo {
int x;
}
// WITH-FIXIT: error: expected ';' after struct
// WITH-FIXIT-NEXT: }
// WITH-FIXIT-NEXT: ^
// WITH-FIXIT-NEXT: ;
// WITHOUT-FIXIT: error: expected ';' after struct
// WITHOUT-FIXIT-NEXT: }
// WITHOUT-FIXIT-NEXT: ^
// WITHOUT-FIXIT-NOT: ;