Files
clang-p2996/clang/test/CodeGenObjC/gnustep2-category-protocol.m
Dmitri Gribenko a3a3964f98 Fixed typos in tests: s/CHEKC/CHECK/
Reviewers: ilya-biryukov

Subscribers: nemanjai, javed.absar, jsji, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D58611

llvm-svn: 354785
2019-02-25 13:41:59 +00:00

26 lines
526 B
Objective-C

// RUN: %clang_cc1 -triple x86_64-unknown-freebsd -S -emit-llvm -fobjc-runtime=gnustep-2.0 -o - %s | FileCheck %s
// Regression test. We weren't emitting definitions for protocols used in
// categories, causing linker errors when the category was the only reference
// to a protocol in a binary.
// CHECK: @._OBJC_PROTOCOL_Y = global
// CHECK-SAME: section "__objc_protocols", comdat, align 8
@interface X
{
id isa;
}
@end
@implementation X
@end
@protocol Y @end
@interface X (y) <Y>
@end
@implementation X (y) @end