brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · 367981a Raw
73 lines · cpp
1// RUN: %clang -target x86_64-apple-macosx10.12 -c -### %s 2>&1 \2// RUN:   | FileCheck %s -check-prefix=UNAVAILABLE3//4// RUN: %clang -target arm64-apple-ios10 -c -### %s 2>&1 \5// RUN:   | FileCheck %s -check-prefix=UNAVAILABLE6//7// RUN: %clang -target arm64-apple-tvos10 -c -### %s 2>&1 \8// RUN:   | FileCheck %s -check-prefix=UNAVAILABLE9//10// RUN: %clang -target thumbv7-apple-watchos3 -c -### %s 2>&1 \11// RUN:   | FileCheck %s -check-prefix=UNAVAILABLE12//13// RUN: %clang -target x86_64-apple-darwin -mios-simulator-version-min=10 \14// RUN:  -c -### %s 2>&1 \15// RUN:   | FileCheck %s -check-prefix=UNAVAILABLE16//17// RUN: %clang -target x86_64-apple-darwin -mtvos-simulator-version-min=10 \18// RUN: -c -### %s 2>&1 \19// RUN:   | FileCheck %s -check-prefix=UNAVAILABLE20//21// RUN: %clang -target x86_64-apple-darwin -mwatchos-simulator-version-min=3 \22// RUN: -c -### %s 2>&1 \23// RUN:   | FileCheck %s -check-prefix=UNAVAILABLE24//25// RUN: %clang -target s390x-none-zos -c -### %s 2>&1 \26// RUN:   | FileCheck %s -check-prefix=UNAVAILABLE27 28// UNAVAILABLE: "-faligned-alloc-unavailable"29 30// RUN: %clang -target x86_64-apple-macosx10.13 -c -### %s 2>&1 \31// RUN:   | FileCheck %s -check-prefix=AVAILABLE32//33// RUN: %clang -target arm64-apple-ios11 -c -### %s 2>&1 \34// RUN:   | FileCheck %s -check-prefix=AVAILABLE35//36// RUN: %clang -target arm64-apple-tvos11 -c -### %s 2>&1 \37// RUN:   | FileCheck %s -check-prefix=AVAILABLE38//39// RUN: %clang -target armv7k-apple-watchos4 -c -### %s 2>&1 \40// RUN:   | FileCheck %s -check-prefix=AVAILABLE41//42// RUN: %clang -target x86_64-unknown-linux-gnu -c -### %s 2>&1 \43// RUN:   | FileCheck %s -check-prefix=AVAILABLE44//45// RUN: %clang -target x86_64-apple-darwin -mios-simulator-version-min=11 \46// RUN:  -c -### %s 2>&1 \47// RUN:   | FileCheck %s -check-prefix=AVAILABLE48//49// RUN: %clang -target x86_64-apple-darwin -mtvos-simulator-version-min=11 \50// RUN: -c -### %s 2>&1 \51// RUN:   | FileCheck %s -check-prefix=AVAILABLE52//53// RUN: %clang -target x86_64-apple-darwin -mwatchos-simulator-version-min=4 \54// RUN: -c -### %s 2>&1 \55// RUN:   | FileCheck %s -check-prefix=AVAILABLE56//57// Check that passing -faligned-allocation or -fno-aligned-allocation stops the58// driver from passing -faligned-alloc-unavailable to cc1.59//60// RUN: %clang -target x86_64-apple-macosx10.12 -faligned-allocation -c -### %s 2>&1 \61// RUN:   | FileCheck %s -check-prefix=AVAILABLE62//63// RUN: %clang -target x86_64-apple-macosx10.12 -fno-aligned-allocation -c -### %s 2>&1 \64// RUN:   | FileCheck %s -check-prefix=AVAILABLE65//66// RUN: %clang -target s390x-none-zos -faligned-allocation -c -### %s 2>&1 \67// RUN:   | FileCheck %s -check-prefix=AVAILABLE68//69// RUN: %clang -target s390x-none-zos -fno-aligned-allocation -c -### %s 2>&1 \70// RUN:   | FileCheck %s -check-prefix=AVAILABLE71 72// AVAILABLE-NOT: "-faligned-alloc-unavailable"73