1 | // RUN: %clang -### -ccc-arcmt-migrate /foo/bar -fsyntax-only %s 2>&1 | FileCheck %s |
2 | |
3 | // CHECK: "-arcmt-migrate" "-mt-migrate-directory" "{{[^"]*}}/foo/bar" |
4 | |
5 | // RUN: touch %t.o |
6 | // RUN: %clang -ccc-arcmt-check -target i386-apple-darwin9 -### %t.o 2> %t.log |
7 | // RUN: FileCheck -check-prefix=LINK %s < %t.log |
8 | // RUN: %clang -ccc-arcmt-migrate /foo/bar -target i386-apple-darwin9 -### %t.o 2> %t.log |
9 | // RUN: FileCheck -check-prefix=LINK %s < %t.log |
10 | |
11 | // LINK-NOT: {{ld(.exe)?"}} |
12 | // LINK: {{touch(.exe)?"}} |
13 | |
14 | // RUN: %clang -### -ccc-arcmt-migrate /foo/bar -fsyntax-only -fno-objc-arc %s 2>&1 | FileCheck -check-prefix=CHECK-NOARC %s |
15 | // CHECK-NOARC-NOT: argument unused during compilation |
16 | |