xref: /llvm-project/clang/test/ARCMT/allowlisted/objcmt-with-allowlist.m (revision a83a6c22e63ad84e9c210c71b36413bed72ac23c)
1// RUN: rm -rf %t
2// RUN: %clang_cc1 -objcmt-migrate-readwrite-property -objcmt-migrate-instancetype -objcmt-migrate-ns-macros %s -triple x86_64-apple-darwin11 -migrate -o %t.remap
3// RUN: c-arcmt-test %t.remap | arcmt-test -verify-transformed-files %S/header1.h.result %S/header2.h.result
4// RUN: %clang_cc1 -objcmt-migrate-readwrite-property -objcmt-migrate-instancetype -objcmt-migrate-ns-macros -objcmt-allowlist-dir-path=%S/Inputs %s -triple x86_64-apple-darwin11 -migrate -o %t.remap
5// RUN: c-arcmt-test %t.remap | arcmt-test -verify-transformed-files %S/header1.h.result
6
7@interface NSObject
8+ (id)alloc;
9@end
10
11#include "header1.h"
12#include "header2.h"
13