// RUN: %clang_cc1 -fsyntax-only -verify %s
@interfaceSuper@end
Super s1;// expected-error{{interface type cannot be statically allocated}}
extern Super e1;// expected-error{{interface type cannot be statically allocated}}
struct S {
Super s1;// expected-error{{interface type cannot be statically allocated}}
};@protocolP1@end@interfaceINTF{
Super ivar1;// expected-error{{interface type cannot be statically allocated}}
}@endstructwhatever{
Super objField;// expected-error{{interface type cannot be statically allocated}}
};@interfaceMyIntf{
Super<P1> ivar1;// expected-error{{interface type cannot be statically allocated}}
}@end
Super foo(// expected-error{{interface type 'Super' cannot be returned by value; did you forget * in 'Super'}}
Super parm1){// expected-error{{interface type 'Super' cannot be passed by value; did you forget * in 'Super'}}
Super p1;// expected-error{{interface type cannot be statically allocated}}
return p1;}@interfaceNSMutableSet@end@interfaceDVTDummyAnnotationProvider@property(readonly)NSMutableSet annotations;// expected-error{{interface type cannot be statically allocated}}
@end