llvm-project/clang/test/Sema/protocol-expr-1.m

16 lines
187 B
Objective-C

// RUN: clang -fsyntax-only -verify %s
@protocol fproto;
@protocol p1
@end
@class cl;
int main()
{
Protocol *proto = @protocol(p1);
Protocol *fproto = @protocol(fproto);
}