summaryrefslogtreecommitdiff
path: root/clang/test/ARCMT/migrate-emit-errors.m
blob: 95c0d2f8f073e6dad476b795705e5d61bef6e5de (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -arcmt-migrate -mt-migrate-directory %t -arcmt-migrate-emit-errors %s 2>&1 | FileCheck %s
// RUN: rm -rf %t

@protocol NSObject
- (oneway void)release;
@end

void test(id p) {
  [p release];
}

// CHECK: error: ARC forbids explicit message send of 'release'