clang/test/CodeGenObjC/extern-void-class-decl.m
raw| 1 | // RUN: %clang_cc1 -triple x86_64-apple-macosx10.14.0 %s -emit-llvm -o - | FileCheck %s |
| 2 | |
| 3 | extern void OBJC_CLASS_$_f; |
| 4 | Class 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 |