Akira Hatanaka | cae83f7 | 2017-06-29 18:48:40 +0000 | [diff] [blame] | 1 | // RUN: %clang -target x86_64-apple-macosx10.12 -c -### %s 2>&1 \ |
| 2 | // RUN: | FileCheck %s -check-prefix=UNAVAILABLE |
| 3 | // |
| 4 | // RUN: %clang -target arm64-apple-ios10 -c -### %s 2>&1 \ |
| 5 | // RUN: | FileCheck %s -check-prefix=UNAVAILABLE |
| 6 | // |
| 7 | // RUN: %clang -target arm64-apple-tvos10 -c -### %s 2>&1 \ |
| 8 | // RUN: | FileCheck %s -check-prefix=UNAVAILABLE |
| 9 | // |
| 10 | // RUN: %clang -target thumbv7-apple-watchos3 -c -### %s 2>&1 \ |
| 11 | // RUN: | FileCheck %s -check-prefix=UNAVAILABLE |
| 12 | // |
Alex Lorenz | 1acc63f | 2017-12-19 19:05:04 +0000 | [diff] [blame] | 13 | // RUN: %clang -target x86_64-apple-darwin -mios-simulator-version-min=10 \ |
Akira Hatanaka | cae83f7 | 2017-06-29 18:48:40 +0000 | [diff] [blame] | 14 | // RUN: -c -### %s 2>&1 \ |
| 15 | // RUN: | FileCheck %s -check-prefix=UNAVAILABLE |
| 16 | // |
Alex Lorenz | 1acc63f | 2017-12-19 19:05:04 +0000 | [diff] [blame] | 17 | // RUN: %clang -target x86_64-apple-darwin -mtvos-simulator-version-min=10 \ |
Akira Hatanaka | cae83f7 | 2017-06-29 18:48:40 +0000 | [diff] [blame] | 18 | // RUN: -c -### %s 2>&1 \ |
| 19 | // RUN: | FileCheck %s -check-prefix=UNAVAILABLE |
| 20 | // |
Alex Lorenz | 1acc63f | 2017-12-19 19:05:04 +0000 | [diff] [blame] | 21 | // RUN: %clang -target x86_64-apple-darwin -mwatchos-simulator-version-min=3 \ |
Akira Hatanaka | cae83f7 | 2017-06-29 18:48:40 +0000 | [diff] [blame] | 22 | // RUN: -c -### %s 2>&1 \ |
| 23 | // RUN: | FileCheck %s -check-prefix=UNAVAILABLE |
| 24 | // |
| 25 | // UNAVAILABLE: "-faligned-alloc-unavailable" |
| 26 | |
| 27 | // RUN: %clang -target x86_64-apple-macosx10.13 -c -### %s 2>&1 \ |
| 28 | // RUN: | FileCheck %s -check-prefix=AVAILABLE |
| 29 | // |
| 30 | // RUN: %clang -target arm64-apple-ios11 -c -### %s 2>&1 \ |
| 31 | // RUN: | FileCheck %s -check-prefix=AVAILABLE |
| 32 | // |
| 33 | // RUN: %clang -target arm64-apple-tvos11 -c -### %s 2>&1 \ |
| 34 | // RUN: | FileCheck %s -check-prefix=AVAILABLE |
| 35 | // |
| 36 | // RUN: %clang -target armv7k-apple-watchos4 -c -### %s 2>&1 \ |
| 37 | // RUN: | FileCheck %s -check-prefix=AVAILABLE |
| 38 | // |
| 39 | // RUN: %clang -target x86_64-unknown-linux-gnu -c -### %s 2>&1 \ |
| 40 | // RUN: | FileCheck %s -check-prefix=AVAILABLE |
| 41 | // |
Alex Lorenz | 1acc63f | 2017-12-19 19:05:04 +0000 | [diff] [blame] | 42 | // RUN: %clang -target x86_64-apple-darwin -mios-simulator-version-min=11 \ |
Akira Hatanaka | cae83f7 | 2017-06-29 18:48:40 +0000 | [diff] [blame] | 43 | // RUN: -c -### %s 2>&1 \ |
| 44 | // RUN: | FileCheck %s -check-prefix=AVAILABLE |
| 45 | // |
Alex Lorenz | 1acc63f | 2017-12-19 19:05:04 +0000 | [diff] [blame] | 46 | // RUN: %clang -target x86_64-apple-darwin -mtvos-simulator-version-min=11 \ |
Akira Hatanaka | cae83f7 | 2017-06-29 18:48:40 +0000 | [diff] [blame] | 47 | // RUN: -c -### %s 2>&1 \ |
| 48 | // RUN: | FileCheck %s -check-prefix=AVAILABLE |
| 49 | // |
Alex Lorenz | 1acc63f | 2017-12-19 19:05:04 +0000 | [diff] [blame] | 50 | // RUN: %clang -target x86_64-apple-darwin -mwatchos-simulator-version-min=4 \ |
Akira Hatanaka | cae83f7 | 2017-06-29 18:48:40 +0000 | [diff] [blame] | 51 | // RUN: -c -### %s 2>&1 \ |
| 52 | // RUN: | FileCheck %s -check-prefix=AVAILABLE |
| 53 | // |
Volodymyr Sapsai | e5015ab | 2018-08-03 23:12:37 +0000 | [diff] [blame] | 54 | // Check that passing -faligned-allocation or -fno-aligned-allocation stops the |
| 55 | // driver from passing -faligned-alloc-unavailable to cc1. |
| 56 | // |
| 57 | // RUN: %clang -target x86_64-apple-macosx10.12 -faligned-allocation -c -### %s 2>&1 \ |
| 58 | // RUN: | FileCheck %s -check-prefix=AVAILABLE |
| 59 | // |
| 60 | // RUN: %clang -target x86_64-apple-macosx10.12 -fno-aligned-allocation -c -### %s 2>&1 \ |
| 61 | // RUN: | FileCheck %s -check-prefix=AVAILABLE |
| 62 | |
Akira Hatanaka | cae83f7 | 2017-06-29 18:48:40 +0000 | [diff] [blame] | 63 | // AVAILABLE-NOT: "-faligned-alloc-unavailable" |