]> granicus.if.org Git - clang/commitdiff
Add -pedantic so test passes.
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 12 Dec 2007 01:06:09 +0000 (01:06 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 12 Dec 2007 01:06:09 +0000 (01:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44900 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/incompatible-protocol-qualified-types.m

index 0594eb728485ee348a011888f9093f8e91a9de70..767a2424e046aa5f9a7aa6df4b8e7db9f1f6102b 100644 (file)
@@ -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> *}}
 }