From: Fariborz Jahanian Date: Wed, 12 Dec 2007 01:06:09 +0000 (+0000) Subject: Add -pedantic so test passes. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d6410dc91d1a44ffc5d1cfd1fca386453091d07;p=clang Add -pedantic so test passes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44900 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 * Func1(INTF *p2) INTF * Func2(INTF *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 *' to function expecting 'INTF *}} + return p2; // expected-warning {{incompatible pointer type returning 'INTF *', expected 'INTF *}} } INTF * Func3(INTF *p2) { - return p2; // expected-warning {{incompatible pointer types passing}} + return p2; // expected-warning {{incompatible pointer type returning 'INTF *', expected 'INTF *}} }