xref: /llvm-project/clang/test/CodeGenObjC/extern-void-class-decl.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1 -triple x86_64-apple-macosx10.14.0 %s -emit-llvm -o - | FileCheck %s
2
3extern void OBJC_CLASS_$_f;
4Class c = (Class)&OBJC_CLASS_$_f;
5
6@implementation f @end
7
8// Check that we override the initializer for c, and that OBJC_CLASS_$_f gets
9// the right definition.
10
11// CHECK: @c ={{.*}} global ptr @"OBJC_CLASS_$_f"
12// CHECK: @"OBJC_CLASS_$_f" ={{.*}} global %struct._class_t
13