forked from OSchip/llvm-project
12 lines
291 B
Mathematica
12 lines
291 B
Mathematica
|
// RUN: %clang -S -emit-llvm %s -o - -x objective-c -fobjc-runtime=gnustep-1.5 | FileCheck %s
|
||
|
|
||
|
// Regression test: check that we don't crash when referencing a forward-declared protocol.
|
||
|
@protocol P;
|
||
|
|
||
|
Protocol *getProtocol(void)
|
||
|
{
|
||
|
return @protocol(P);
|
||
|
}
|
||
|
|
||
|
// CHECK: @.objc_protocol
|