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