[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGenObjC / extern-void-class-decl.m
blob826622b94c1bb13316334691614b293043dc8aec
1 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.14.0 %s -emit-llvm -o - | FileCheck %s
3 extern void OBJC_CLASS_$_f;
4 Class c = (Class)&OBJC_CLASS_$_f;
6 @implementation f @end
8 // Check that we override the initializer for c, and that OBJC_CLASS_$_f gets
9 // the right definition.
11 // CHECK: @c ={{.*}} global ptr @"OBJC_CLASS_$_f"
12 // CHECK: @"OBJC_CLASS_$_f" ={{.*}} global %struct._class_t