From a075e63bbca031f3d5794e888252cab265cc058c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 26 Jul 2008 00:46:50 +0000 Subject: fix several problems with the protocol qualified id handling where id was implicit. First, fix canonical type handling of these, since protocol qualified id's are always canonical. Next, enhance SemaType to actually make these when used (instead of int) allowing them to actually be used when appropriate. Finally remove a bunch of logic relating to the mishandling of canonical types with protocol-qual id's. This fixes rdar://5986251 llvm-svn: 54083 --- clang/test/Sema/objc-protocol-1.m | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/test') diff --git a/clang/test/Sema/objc-protocol-1.m b/clang/test/Sema/objc-protocol-1.m index f0615a32bea..3ace0ac3de0 100644 --- a/clang/test/Sema/objc-protocol-1.m +++ b/clang/test/Sema/objc-protocol-1.m @@ -1,10 +1,14 @@ // RUN: clang -fsyntax-only -verify %s +// rdar://5986251 @protocol SomeProtocol +- (void) bar; @end void foo(id x) { bar((short)x); // expected-error {{expected ')'}} expected-error {{to match this '('}} bar(()x); // expected-warning {{protocol qualifiers without 'id' is archaic}} + + [()x bar]; // expected-warning {{protocol qualifiers without 'id' is archaic}} } -- cgit v1.2.3