]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGenObjC/extern-void-class-decl.m
Vendor import of clang trunk r351319 (just before the release_80 branch
[FreeBSD/FreeBSD.git] / test / CodeGenObjC / extern-void-class-decl.m
1 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.14.0 %s -emit-llvm -o - | FileCheck %s
2
3 // rdar://45077269
4
5 extern void OBJC_CLASS_$_f;
6 Class c = (Class)&OBJC_CLASS_$_f;
7
8 @implementation f @end
9
10 // Check that we override the initializer for c, and that OBJC_CLASS_$_f gets
11 // the right definition.
12
13 // CHECK: @c = global i8* bitcast (%struct._class_t* @"OBJC_CLASS_$_f" to i8*)
14 // CHECK: @"OBJC_CLASS_$_f" = global %struct._class_t