[cfe-commits] r173504 - /cfe/trunk/test/FixIt/fixit-errors.c

Dmitri Gribenko gribozavr at gmail.com
Fri Jan 25 14:08:25 PST 2013


Author: gribozavr
Date: Fri Jan 25 16:08:24 2013
New Revision: 173504

URL: http://llvm.org/viewvc/llvm-project?rev=173504&view=rev
Log:
This test actually passes, just add the missing expected-error

Modified:
    cfe/trunk/test/FixIt/fixit-errors.c

Modified: cfe/trunk/test/FixIt/fixit-errors.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/FixIt/fixit-errors.c?rev=173504&r1=173503&r2=173504&view=diff
==============================================================================
--- cfe/trunk/test/FixIt/fixit-errors.c (original)
+++ cfe/trunk/test/FixIt/fixit-errors.c Fri Jan 25 16:08:24 2013
@@ -1,7 +1,7 @@
+// RUN: %clang_cc1 -fsyntax-only -pedantic -verify %s
 // RUN: cp %s %t
-// RUN: %clang_cc1 -pedantic -verify -fixit -x c %t
+// RUN: not %clang_cc1 -pedantic -fixit -x c %t
 // RUN: %clang_cc1 -pedantic -Werror -x c %t
-// XFAIL: *
 
 /* This is a test of the various code modification hints that are
    provided as part of warning or extension diagnostics. All of the
@@ -19,5 +19,5 @@
 struct Point *get_origin();
 
 void test_point() {
-  (void)get_origin->x;
+  (void)get_origin->x; // expected-error {{base of member reference is a function; perhaps you meant to call it with no arguments?}}
 }





More information about the cfe-commits mailing list