diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-25 22:08:24 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-01-25 22:08:24 +0000 |
commit | d08606817a3c8f36441247451c1c9a19abeebd5e (patch) | |
tree | 8097cd65c4e5a99ef3d427bdc29ed8b7356d3740 /test/FixIt/fixit-errors.c | |
parent | ff3e102bc9dbece2dac365abc9863bc98e49f424 (diff) |
This test actually passes, just add the missing expected-error
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173504 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FixIt/fixit-errors.c')
-rw-r--r-- | test/FixIt/fixit-errors.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/FixIt/fixit-errors.c b/test/FixIt/fixit-errors.c index 356e862ff6..c425fc8a2d 100644 --- a/test/FixIt/fixit-errors.c +++ b/test/FixIt/fixit-errors.c @@ -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?}} } |