minix/external/bsd/llvm/dist/clang/test/SemaObjC/protocol-expr-1.m

17 lines
219 B
Mathematica
Raw Normal View History

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