brintos

brintos / llvm-project-archived public Read only

0
0
Text · 390 B · 826622b Raw
13 lines · plain
1// RUN: %clang_cc1 -triple x86_64-apple-macosx10.14.0 %s -emit-llvm -o - | FileCheck %s2 3extern void OBJC_CLASS_$_f;4Class c = (Class)&OBJC_CLASS_$_f;5 6@implementation f @end7 8// Check that we override the initializer for c, and that OBJC_CLASS_$_f gets9// the right definition.10 11// CHECK: @c ={{.*}} global ptr @"OBJC_CLASS_$_f"12// CHECK: @"OBJC_CLASS_$_f" ={{.*}} global %struct._class_t13