Clang Project

clang_source_code/test/Driver/target-triple-deployment.c
1// RUN: touch %t.o
2// RUN: %clang -target x86_64-apple-macosx10.4 -### %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// RUN: %clang -target armv7-apple-ios7.0 -### %t.o 2>> %t.log
11// RUN: %clang -target arm64-apple-ios -### %t.o 2>> %t.log
12//
13// RUN: FileCheck %s < %t.log
14
15// CHECK: {{ld(.exe)?"}}
16// CHECK: -macosx_version_min
17// CHECK: 10.4.0
18// CHECK: {{ld(.exe)?"}}
19// CHECK: -macosx_version_min
20// CHECK: 10.5.0
21// CHECK: {{ld(.exe)?"}}
22// CHECK: -macosx_version_min
23// CHECK: 10.7.0
24// CHECK: {{ld(.exe)?"}}
25// CHECK: -iphoneos_version_min
26// CHECK: 5.0.0
27// CHECK: {{ld(.exe)?"}}
28// CHECK: -iphoneos_version_min
29// CHECK: 5.0.0
30// CHECK: {{ld(.exe)?"}}
31// CHECK: -iphoneos_version_min
32// CHECK: 1.2.3
33// CHECK: {{ld(.exe)?"}}
34// CHECK: -iphoneos_version_min
35// CHECK: 5.0.0
36// CHECK: {{ld(.exe)?"}}
37// CHECK: -iphoneos_version_min
38// CHECK: 7.0.0
39// CHECK: {{ld(.exe)?"}}
40// CHECK: -iphoneos_version_min
41// CHECK: 7.0.0
42