llvm-for-llvmta/tools/clang/test/CodeGenObjC/forward-declare-protocol-gnu.m

14 lines
276 B
Mathematica
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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;
@interface I <P>
@end
@implementation I
@end
// CHECK: @.objc_protocol