[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / darwin-target-variant.c
blob1d4de3eec6749480add1ca850e874bd224a778d0
1 // RUN: %clang -target unknown-apple-macos10.15 -arch x86_64 -arch x86_64h -arch i386 \
2 // RUN: -darwin-target-variant x86_64-apple-ios13.1-macabi -darwin-target-variant x86_64h-apple-ios13.1-macabi \
3 // RUN: -c %s -### 2>&1 | FileCheck %s
5 // RUN: %clang -target x86_64-apple-macos10.15 -darwin-target-variant i386-apple-ios13.1-macabi \
6 // RUN: -c %s -### 2>&1 | FileCheck --check-prefix=UNUSED-TV %s
8 // RUN: %clang -target x86_64-apple-macos10.15 -darwin-target-variant x86_64-apple-ios13.1-macabi \
9 // RUN: -darwin-target-variant x86_64-apple-ios13.1-macabi -c %s -### 2>&1 | FileCheck --check-prefix=REDUNDANT-TV %s
11 // RUN: %clang -target x86_64-apple-macos10.15 -darwin-target-variant x86_64-apple-ios13.1 \
12 // RUN: -c %s -### 2>&1 | FileCheck --check-prefix=INCORRECT-TV %s
14 // RUN: %clang -target unknown-apple-ios13.1-macabi -arch x86_64 -arch x86_64h \
15 // RUN: -darwin-target-variant x86_64-apple-macos10.15 \
16 // RUN: -c %s -### 2>&1 | FileCheck --check-prefix=INVERTED %s
18 // CHECK: "-triple" "x86_64-apple-macosx10.15.0"
19 // CHECK-SAME: "-darwin-target-variant-triple" "x86_64-apple-ios13.1-macabi"
20 // CHECK: "-triple" "x86_64h-apple-macosx10.15.0"
21 // CHECK-SAME: "-darwin-target-variant-triple" "x86_64h-apple-ios13.1-macabi"
22 // CHECK: "-triple" "i386-apple-macosx10.15.0"
23 // CHECK-NOT: target-variant-triple
25 // INVERTED: "-triple" "x86_64-apple-ios13.1.0-macabi"
26 // INVERTED-SAME: "-darwin-target-variant-triple" "x86_64-apple-macos10.15"
27 // INVERTED: "-triple" "x86_64h-apple-ios13.1.0-macabi"
28 // INVERTED-NOT: target-variant-triple
30 // UNUSED-TV: argument unused during compilation: '-darwin-target-variant i386-apple-ios13.1-macabi'
31 // REDUNDANT-TV: argument unused during compilation: '-darwin-target-variant x86_64-apple-ios13.1-macabi'
32 // INCORRECT-TV: unsupported '-darwin-target-variant' value 'x86_64-apple-ios13.1'; use 'ios-macabi' instead