]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenObjC/forward-declare-protocol-gnu.m
Vendor import of clang trunk r338150:
[FreeBSD/FreeBSD.git] / test / CodeGenObjC / forward-declare-protocol-gnu.m
1 // RUN: %clang -S -emit-llvm %s -o - -x objective-c -fobjc-runtime=gnustep-1.5 | FileCheck  %s
2
3 // Regression test: check that we don't crash when referencing a forward-declared protocol.
4 @protocol P;
5
6 Protocol *getProtocol(void)
7 {
8                 return @protocol(P);
9 }
10
11 // CHECK: @.objc_protocol