1 // RUN: %clang -### -c -fveclib=none %s 2>&1 | FileCheck -check-prefix CHECK-NOLIB %s 2 // RUN: %clang -### -c -fveclib=Accelerate %s 2>&1 | FileCheck -check-prefix CHECK-ACCELERATE %s 3 // RUN: not %clang -c -fveclib=something %s 2>&1 | FileCheck -check-prefix CHECK-INVALID %s 4 5 // CHECK-NOLIB: "-fveclib=none" 6 // CHECK-ACCELERATE: "-fveclib=Accelerate" 7 8 // CHECK-INVALID: error: invalid value 'something' in '-fveclib=something' 9 10 // RUN: %clang -fveclib=Accelerate %s -target arm64-apple-ios8.0.0 -### 2>&1 | FileCheck --check-prefix=CHECK-LINK %s 11 // CHECK-LINK: "-framework" "Accelerate" 12 13 // RUN: %clang -fveclib=Accelerate %s -nostdlib -target arm64-apple-ios8.0.0 -### 2>&1 | FileCheck --check-prefix=CHECK-LINK-NOSTDLIB %s 14 // CHECK-LINK-NOSTDLIB-NOT: "-framework" "Accelerate" 15 16 // RUN: %clang -fveclib=Accelerate %s -nodefaultlibs -target arm64-apple-ios8.0.0 -### 2>&1 | FileCheck --check-prefix=CHECK-LINK-NODEFAULTLIBS %s 17 // CHECK-LINK-NODEFAULTLIBS-NOT: "-framework" "Accelerate" 18