1 // Objective-C recovery
2 // RUN: not %clang_cc1 -triple x86_64-apple-darwin10 -fdiagnostics-parseable-fixits -x objective-c %s 2>&1 | FileCheck -check-prefix=CHECK-MRR %s
3 // RUN: not %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -fdiagnostics-parseable-fixits -x objective-c %s 2>&1 | FileCheck -check-prefix=CHECK-ARC %s
5 __attribute__((objc_root_class))
7 + (void)classDirectMethod __attribute__((objc_direct));
8 + (void)classDirectMethod2 __attribute__((objc_direct));
9 - (void)instanceDirectMethod __attribute__((objc_direct));
17 // CHECK-MRR: {18:4-18:8}:"Root"
18 [self classDirectMethod];
20 + (void)classMethod2 {
21 // CHECK-MRR: {23:4-23:9}:"Root"
22 // CHECK-ARC: {23:4-23:9}:"self"
23 [super classDirectMethod2];
25 - (void)instanceMethod {
26 // CHECK-MRR: {28:4-28:9}:"self"
27 // CHECK-ARC: {28:4-28:9}:"self"
28 [super instanceDirectMethod];