summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/protocol-expr-1.m
blob: cc1c3231d5e516a4c0eb86889ed3752a0940055b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: clang-cc -fsyntax-only -verify %s

@protocol fproto;

@protocol p1 
@end

@class cl;

int main()
{
	Protocol *proto = @protocol(p1);
        Protocol *fproto = @protocol(fproto);
}

OpenPOWER on IntegriCloud