llvm-for-llvmta/tools/clang/test/CodeGenObjC/attr-used-on-method.m

12 lines
264 B
Mathematica
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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