brintos

brintos / llvm-project-archived public Read only

0
0
Text · 633 B · 21415cc Raw
20 lines · plain
1// RUN: %clang_cc1 -triple x86_64-apple-darwin -fobjc-runtime=macosx-10.9.0 -emit-llvm %s -o - | FileCheck %s2 3// RUN: %clang_cc1 -triple i386-apple-darwin -fobjc-runtime=macosx-fragile-10.9.0 -emit-llvm %s -o - | FileCheck %s4 5@interface Root6+(Class)class;7@end8 9__attribute__((objc_runtime_visible))10__attribute__((objc_runtime_name("MyRuntimeVisibleClass")))11@interface A : Root12@end13 14// CHECK: [[CLASSNAME:@.*]] = private unnamed_addr constant [22 x i8] c"MyRuntimeVisibleClass15// CHECK: define{{.*}} ptr @getClass() #0 {16Class getClass(void) {17  // CHECK: call ptr @objc_lookUpClass(ptr [[CLASSNAME]]) #218  return [A class];19}20