1 // RUN: %clang_cc1 -fsyntax-only -verify %s
12 @protocol Foo <NSObject>
18 @interface Baz : NSObject {
22 - (id)initWithFoo:(id <Foo>)foo bar:(id <Bar>)bar;
29 return [self initWithFoo:0 bar:0];
32 - (id)initWithFoo:(id <Foo>)foo bar:(id <Bar>)bar
52 void rdar8575095(id a) {
53 [id<NSObject>(a) retain];
54 id<NSObject> x(id<NSObject>(0));
55 id<NSObject> x2(id<NSObject>(y)); // expected-warning{{disambiguated as a function declaration}} expected-note{{add a pair of parentheses}}