summaryrefslogtreecommitdiffstats
path: root/test/Rewriter/objc-modern-getclass-proto.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/Rewriter/objc-modern-getclass-proto.mm')
-rw-r--r--test/Rewriter/objc-modern-getclass-proto.mm10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Rewriter/objc-modern-getclass-proto.mm b/test/Rewriter/objc-modern-getclass-proto.mm
new file mode 100644
index 0000000..98e76e0
--- /dev/null
+++ b/test/Rewriter/objc-modern-getclass-proto.mm
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -E %s -o %t.mm
+// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 %t.mm -o %t-rw.cpp
+// rdar://11375495
+
+@interface I @end
+@implementation I @end
+
+// CHECK: __OBJC_RW_DLLIMPORT struct objc_class *objc_getClass(const char *);
+// CHECK: __OBJC_RW_DLLIMPORT struct objc_class *objc_getMetaClass(const char *);
+
OpenPOWER on IntegriCloud