summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/null-objc-empty-vtable.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/null-objc-empty-vtable.m')
-rw-r--r--test/CodeGenObjC/null-objc-empty-vtable.m10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenObjC/null-objc-empty-vtable.m b/test/CodeGenObjC/null-objc-empty-vtable.m
new file mode 100644
index 0000000..fe69ce1
--- /dev/null
+++ b/test/CodeGenObjC/null-objc-empty-vtable.m
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -emit-llvm -o - %s | FileCheck -check-prefix CHECK-OSX %s
+// RUN: %clang_cc1 -triple thumbv7-apple-ios3.0.0 -emit-llvm -o - %s | FileCheck -check-prefix CHECK-IOS %s
+// rdar://14802916
+
+@interface I
+@end
+
+@implementation I @end
+// CHECK-OSX: %struct._class_t* null, %struct._objc_cache* @_objc_empty_cache, i8* (i8*, i8*)** null
+// CHECK-IOS: %struct._class_t* null, %struct._objc_cache* @_objc_empty_cache, i8* (i8*, i8*)** null
OpenPOWER on IntegriCloud