1 // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
2 // RUN: %clang_cc1 -triple armv7-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
3 // RUN: %clang_cc1 -triple arm64-apple-ios -emit-llvm -o - %s | FileCheck %s
11 __attribute__((availability(macosx,introduced=9876.5)))
12 @interface MyClass : NSObject
13 + (void)someClassMethod;
14 - (void)someInstanceMethod;
17 @implementation MyClass
18 + (void)someClassMethod {
21 - (void)someInstanceMethod {
22 [MyClass someClassMethod];
29 MyClass *wrapper = [MyClass alloc];
32 // CHECK: @"OBJC_CLASS_$_MyClass" ={{.*}} global %struct._class_t
33 // CHECK: @"OBJC_METACLASS_$_NSObject" = external global %struct._class_t
34 // CHECK: @"OBJC_METACLASS_$_MyClass" ={{.*}} global %struct._class_t
35 // CHECK: @"OBJC_CLASS_$_NSObject" = external global %struct._class_t
38 __attribute__((weak_import))
39 @interface NSURLQueryItem : NSObject
42 @implementation NSURLQueryItem (hax)
43 +(void)classmethod { [super class]; }
46 // CHECK: @"OBJC_METACLASS_$_NSURLQueryItem" = extern_weak global
47 // CHECK: @"OBJC_CLASS_$_NSURLQueryItem" = extern_weak global
50 __attribute__((visibility("default"))) __attribute__((availability(ios,introduced=9876.5)))
51 @interface AVScheduledAudioParameters @end
53 @interface XXXX : AVScheduledAudioParameters
56 @implementation AVScheduledAudioParameters @end
57 @implementation XXXX @end
59 // CHECK: @"OBJC_CLASS_$_AVScheduledAudioParameters" ={{.*}} global %struct._class_t
60 // CHECK: @"OBJC_METACLASS_$_AVScheduledAudioParameters" ={{.*}} global %struct._class_t