blob: 3471bf6516a26ceca27ec9a1a9db33674097e6f4 [file] [log] [blame]
Ted Kremenekebcb57a2012-03-06 20:05:56 +00001// RUN: touch %t.o
Douglas Gregor04e326b2012-05-15 21:00:27 +00002// 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 Kremenekebcb57a2012-03-06 20:05:56 +00003// 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 Wilson63d9f3c2012-05-15 18:57:39 +00005// RUN: %clang -### -target x86_64-apple-darwin10 -fobjc-link-runtime -nostdlib %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOSTDLIB %s
Ted Kremenekebcb57a2012-03-06 20:05:56 +00006
Douglas Gregor04e326b2012-05-15 21:00:27 +00007// CHECK-ARCLITE-OSX: -lfoo
Ted Kremenekebcb57a2012-03-06 20:05:56 +00008// CHECK-ARCLITE-OSX: libarclite_macosx.a
Bob Wilsond8f02762012-04-23 16:22:22 +00009// CHECK-ARCLITE-OSX: -framework
10// CHECK-ARCLITE-OSX: Foundation
Ted Kremenekebcb57a2012-03-06 20:05:56 +000011// CHECK-ARCLITE-OSX: -lobjc
12// CHECK-NOARCLITE-NOT: libarclite
Bob Wilson63d9f3c2012-05-15 18:57:39 +000013// CHECK-NOSTDLIB-NOT: -lobjc
Bob Wilsona7635f12012-08-07 19:58:00 +000014
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'