xref: /llvm-project/clang/test/CodeGenObjC/category-class-empty.m (revision 7611e16fce9ce36b6bd6dceda691f6bc7e754347)
1// RUN: %clang_cc1 -triple i386-apple-darwin9 -O0 -disable-llvm-passes -emit-llvm -o - %s | FileCheck %s
2// PR7431
3
4// CHECK-NOT: @"OBJC_LABEL_CATEGORY_$" = private global [1 x i8*] [i8* bitcast (%struct._category_t* @"_OBJC_$_CATEGORY_A_$_foo"
5
6@interface A
7@end
8__attribute__((objc_direct_members))
9@interface A(foo)
10- (void)foo_myStuff;
11@end
12@implementation A(foo)
13- (void)foo_myStuff {
14}
15@end
16
17