[cfe-commits] r44900 - /cfe/trunk/test/Sema/incompatible-protocol-qualified-types.m
Fariborz Jahanian
fjahanian at apple.com
Tue Dec 11 17:06:09 PST 2007
Author: fjahanian
Date: Tue Dec 11 19:06:09 2007
New Revision: 44900
URL: http://llvm.org/viewvc/llvm-project?rev=44900&view=rev
Log:
Add -pedantic so test passes.
Modified:
cfe/trunk/test/Sema/incompatible-protocol-qualified-types.m
Modified: cfe/trunk/test/Sema/incompatible-protocol-qualified-types.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/incompatible-protocol-qualified-types.m?rev=44900&r1=44899&r2=44900&view=diff
==============================================================================
--- cfe/trunk/test/Sema/incompatible-protocol-qualified-types.m (original)
+++ cfe/trunk/test/Sema/incompatible-protocol-qualified-types.m Tue Dec 11 19:06:09 2007
@@ -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, 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> *}}
}
More information about the cfe-commits
mailing list