Ted Kremenek | ebcb57a | 2012-03-06 20:05:56 +0000 | [diff] [blame] | 1 | // RUN: touch %t.o |
Douglas Gregor | 04e326b | 2012-05-15 21:00:27 +0000 | [diff] [blame] | 2 | // RUN: %clang -### -target x86_64-apple-darwin10 -fobjc-link-runtime -lfoo -mmacosx-version-min=10.7 %t.o 2>&1 | FileCheck -check-prefix=CHECK-ARCLITE-OSX %s |
Ted Kremenek | ebcb57a | 2012-03-06 20:05:56 +0000 | [diff] [blame] | 3 | // RUN: %clang -### -target x86_64-apple-darwin10 -fobjc-link-runtime -mmacosx-version-min=10.8 %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOARCLITE %s |
| 4 | // RUN: %clang -### -target i386-apple-darwin10 -fobjc-link-runtime -mmacosx-version-min=10.7 %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOARCLITE %s |
Bob Wilson | 63d9f3c | 2012-05-15 18:57:39 +0000 | [diff] [blame] | 5 | // RUN: %clang -### -target x86_64-apple-darwin10 -fobjc-link-runtime -nostdlib %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOSTDLIB %s |
Ted Kremenek | ebcb57a | 2012-03-06 20:05:56 +0000 | [diff] [blame] | 6 | |
Douglas Gregor | 04e326b | 2012-05-15 21:00:27 +0000 | [diff] [blame] | 7 | // CHECK-ARCLITE-OSX: -lfoo |
Ted Kremenek | ebcb57a | 2012-03-06 20:05:56 +0000 | [diff] [blame] | 8 | // CHECK-ARCLITE-OSX: libarclite_macosx.a |
Bob Wilson | d8f0276 | 2012-04-23 16:22:22 +0000 | [diff] [blame] | 9 | // CHECK-ARCLITE-OSX: -framework |
| 10 | // CHECK-ARCLITE-OSX: Foundation |
Ted Kremenek | ebcb57a | 2012-03-06 20:05:56 +0000 | [diff] [blame] | 11 | // CHECK-ARCLITE-OSX: -lobjc |
| 12 | // CHECK-NOARCLITE-NOT: libarclite |
Bob Wilson | 63d9f3c | 2012-05-15 18:57:39 +0000 | [diff] [blame] | 13 | // CHECK-NOSTDLIB-NOT: -lobjc |
Bob Wilson | a7635f1 | 2012-08-07 19:58:00 +0000 | [diff] [blame] | 14 | |
| 15 | // RUN: %clang -### -target x86_64-apple-darwin10 -fobjc-link-runtime -fobjc-arc -mmacosx-version-min=10.7 %s 2>&1 | FileCheck -check-prefix=CHECK-UNUSED %s |
| 16 | |
| 17 | // CHECK-UNUSED-NOT: warning: argument unused during compilation: '-fobjc-link-runtime' |