]> granicus.if.org Git - clang/commitdiff
modern objc translator: additional test.
authorFariborz Jahanian <fjahanian@apple.com>
Thu, 29 Mar 2012 18:20:51 +0000 (18:20 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Thu, 29 Mar 2012 18:20:51 +0000 (18:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153669 91177308-0d34-0410-b5e6-96231b3b80d8

test/Rewriter/objc-modern-metadata-visibility.mm

index dc145b79a0bfb88c91ef098890959dbfa27fffc9..42adf86b0f4fa9ed832e8fb3d4ae9fe6965b219f 100644 (file)
@@ -21,6 +21,9 @@
 - (id) MyNSString { return subIvar ? PrivateIvar : nsstring; }
 @end
 
+@interface NSString @end
+@implementation NSString @end
+
 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" __declspec(dllimport) unsigned long OBJC_IVAR_$_Sub$subIvar;
 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" unsigned long OBJC_IVAR_$_Sub$PrivateIvar;
 // CHECK: __declspec(allocate(".objc_ivar$B")) extern "C" __declspec(dllimport) unsigned long OBJC_IVAR_$_Sub$nsstring;
@@ -32,3 +35,6 @@
 // CHECK: extern "C" __declspec(dllexport) struct _class_t OBJC_METACLASS_$_Sub
 // CHECK: extern "C" __declspec(dllimport) struct _class_t OBJC_CLASS_$_NSObject;
 // CHECK: extern "C" __declspec(dllexport) struct _class_t OBJC_CLASS_$_Sub
+// CHECK: extern "C" __declspec(dllexport) struct _class_t OBJC_CLASS_$_NSString;
+// CHECK: extern "C" __declspec(dllexport) struct _class_t OBJC_METACLASS_$_NSString
+// CHECK: extern "C" __declspec(dllexport) struct _class_t OBJC_CLASS_$_NSString