]> granicus.if.org Git - clang/commitdiff
This test actually passes, just add the missing expected-error
authorDmitri Gribenko <gribozavr@gmail.com>
Fri, 25 Jan 2013 22:08:24 +0000 (22:08 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Fri, 25 Jan 2013 22:08:24 +0000 (22:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173504 91177308-0d34-0410-b5e6-96231b3b80d8

test/FixIt/fixit-errors.c

index 356e862ff60699298cb4cb7f16385571c1a1e591..c425fc8a2d954ff3c8821274e2866b9b5c76bcbf 100644 (file)
@@ -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 {
 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?}}
 }