blob: 56e512c960533ae8a08f1f870cc1c7370cdb31e1 [file] [log] [blame]
Chad Rosier87ca5582012-05-09 18:09:58 +00001// RUN: touch %t.o
2// RUN: %clang -target x86_64-apple-macosx -### %t.o 2> %t.log
3// RUN: %clang -target x86_64-apple-darwin9 -### %t.o 2>> %t.log
4// RUN: %clang -target x86_64-apple-macosx10.7 -### %t.o 2>> %t.log
5//
6// RUN: %clang -target armv7-apple-ios -### %t.o 2>> %t.log
7// RUN: %clang -target armv7-apple-ios0.0 -### %t.o 2>> %t.log
8// RUN: %clang -target armv7-apple-ios1.2.3 -### %t.o 2>> %t.log
9// RUN: %clang -target armv7-apple-ios5.0 -### %t.o 2>> %t.log
10//
11// RUN: FileCheck %s < %t.log
12
13// CHECK: {{ld(.exe)?"}}
14// CHECK: -macosx_version_min
15// CHECK: 10.4.0
16// CHECK: {{ld(.exe)?"}}
17// CHECK: -macosx_version_min
18// CHECK: 10.5.0
19// CHECK: {{ld(.exe)?"}}
20// CHECK: -macosx_version_min
21// CHECK: 10.7.0
22// CHECK: {{ld(.exe)?"}}
23// CHECK: -iphoneos_version_min
24// CHECK: 0.0.0
25// CHECK: {{ld(.exe)?"}}
26// CHECK: -iphoneos_version_min
27// CHECK: 0.0.0
28// CHECK: {{ld(.exe)?"}}
29// CHECK: -iphoneos_version_min
30// CHECK: 1.2.3
31// CHECK: {{ld(.exe)?"}}
32// CHECK: -iphoneos_version_min
33// CHECK: 5.0.0