tree-sitter-objc/examples/SemaObjC/protocol-expr-1.m

17 lines
223 B
Mathematica
Raw Permalink Normal View History

2022-04-16 15:58:26 +00:00
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
@protocol fproto @end
@protocol p1
@end
@class cl;
int main()
{
Protocol *proto = @protocol(p1);
Protocol *fproto = @protocol(fproto);
}