mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 04:06:06 +00:00

This reverts commit d618f1c3b12effd0c2bdb7d02108d3551f389d3d. This commit wasn't reviewed ahead of time and significant concerns were raised immediately after it landed. According to our developer policy this warrants immediate revert of the commit. https://llvm.org/docs/DeveloperPolicy.html#patch-reversion-policy Differential Revision: https://reviews.llvm.org/D155509
15 lines
410 B
Objective-C
15 lines
410 B
Objective-C
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.14.0 %s -emit-llvm -o - | FileCheck %s
|
|
|
|
// rdar://45077269
|
|
|
|
extern void OBJC_CLASS_$_f;
|
|
Class c = (Class)&OBJC_CLASS_$_f;
|
|
|
|
@implementation f @end
|
|
|
|
// Check that we override the initializer for c, and that OBJC_CLASS_$_f gets
|
|
// the right definition.
|
|
|
|
// CHECK: @c ={{.*}} global ptr @"OBJC_CLASS_$_f"
|
|
// CHECK: @"OBJC_CLASS_$_f" ={{.*}} global %struct._class_t
|