diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2007-12-12 01:06:09 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2007-12-12 01:06:09 +0000 |
commit | 2d6410dc91d1a44ffc5d1cfd1fca386453091d07 (patch) | |
tree | 7aca32a09ece0d829404342bd55c5c68aa9440ef | |
parent | b3a99cd5bcaeff0c5ff6a60788b5eb68e52a3953 (diff) |
Add -pedantic so test passes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44900 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Sema/incompatible-protocol-qualified-types.m | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Sema/incompatible-protocol-qualified-types.m b/test/Sema/incompatible-protocol-qualified-types.m index 0594eb7284..767a2424e0 100644 --- a/test/Sema/incompatible-protocol-qualified-types.m +++ b/test/Sema/incompatible-protocol-qualified-types.m @@ -1,4 +1,4 @@ -// RUN: clang -fsyntax-only -verify %s +// RUN: clang -pedantic -fsyntax-only -verify %s @protocol MyProto1 @end @@ -21,15 +21,15 @@ INTF <MyProto1> * Func1(INTF <MyProto1, MyProto2> *p2) INTF <MyProto1, MyProto2> * Func2(INTF <MyProto1> *p2) { - Func(p2); // expected-warning {{incompatible pointer types passing}} - return p2; // expected-warning {{incompatible pointer types passing}} + Func(p2); // expected-warning {{incompatible pointer types passing 'INTF<MyProto1> *' to function expecting 'INTF<MyProto1,MyProto2> *}} + return p2; // expected-warning {{incompatible pointer type returning 'INTF<MyProto1> *', expected 'INTF<MyProto1,MyProto2> *}} } INTF <MyProto1> * Func3(INTF <MyProto2> *p2) { - return p2; // expected-warning {{incompatible pointer types passing}} + return p2; // expected-warning {{incompatible pointer type returning 'INTF<MyProto2> *', expected 'INTF<MyProto1> *}} } |