aboutsummaryrefslogtreecommitdiff
path: root/clang/test/SemaObjC/protocol-expr-1.m
blob: cefe9a9f5449c32e9ead418b13eb8efe6edc2b54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics

@protocol fproto @end

@protocol p1 
@end

@class cl;

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