This assert doesn't really make sense for functions in general, since they start life as declarations, and there isn't really any reason to require them to be defined before attributes are applied to them. rdar://67895846
12 lines
264 B
Objective-C
12 lines
264 B
Objective-C
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 %s -S -emit-llvm -o - | FileCheck %s
|
|
|
|
// CHECK: @llvm.used =
|
|
// CHECK-SAME: @"\01-[X m]"
|
|
|
|
// CHECK: define internal void @"\01-[X m]"(
|
|
|
|
@interface X @end
|
|
@implementation X
|
|
-(void) m __attribute__((used)) {}
|
|
@end
|