r197450 - Add a test for -fno-diagnostics-fixit-info
Dmitri Gribenko
gribozavr at gmail.com
Mon Dec 16 17:19:19 PST 2013
Author: gribozavr
Date: Mon Dec 16 19:19:19 2013
New Revision: 197450
URL: http://llvm.org/viewvc/llvm-project?rev=197450&view=rev
Log:
Add a test for -fno-diagnostics-fixit-info
Added:
cfe/trunk/test/FixIt/no-diagnostics-fixit-info.c
Added: cfe/trunk/test/FixIt/no-diagnostics-fixit-info.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/FixIt/no-diagnostics-fixit-info.c?rev=197450&view=auto
==============================================================================
--- cfe/trunk/test/FixIt/no-diagnostics-fixit-info.c (added)
+++ cfe/trunk/test/FixIt/no-diagnostics-fixit-info.c Mon Dec 16 19:19:19 2013
@@ -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: ;
+
More information about the cfe-commits
mailing list