brintos

brintos / llvm-project-archived public Read only

0
0
Text · 523 B · 9a17c9f Raw
26 lines · plain
1// RUN: %clang_cc1 -triple x86_64-unknown-freebsd -emit-llvm -fobjc-runtime=gnustep-2.0 -o - %s | FileCheck %s2 3// Regression test.  We weren't emitting definitions for protocols used in4// categories, causing linker errors when the category was the only reference5// to a protocol in a binary.6 7// CHECK: @._OBJC_PROTOCOL_Y = global 8// CHECK-SAME: section "__objc_protocols", comdat, align 89 10 11@interface X12{13id isa;14}15@end16@implementation X17@end18 19@protocol Y @end20 21@interface X (y) <Y>22@end23@implementation X (y) @end24 25 26