diff options
Diffstat (limited to 'test/Driver/fveclib.c')
-rw-r--r-- | test/Driver/fveclib.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Driver/fveclib.c b/test/Driver/fveclib.c new file mode 100644 index 000000000000..3bd4bf630f0a --- /dev/null +++ b/test/Driver/fveclib.c @@ -0,0 +1,17 @@ +// RUN: %clang -### -c -fveclib=none %s 2>&1 | FileCheck -check-prefix CHECK-NOLIB %s +// RUN: %clang -### -c -fveclib=Accelerate %s 2>&1 | FileCheck -check-prefix CHECK-ACCELERATE %s +// RUN: not %clang -c -fveclib=something %s 2>&1 | FileCheck -check-prefix CHECK-INVALID %s + +// CHECK-NOLIB: "-fveclib=none" +// CHECK-ACCELERATE: "-fveclib=Accelerate" + +// CHECK-INVALID: error: invalid value 'something' in '-fveclib=something' + +// RUN: %clang -fveclib=Accelerate %s -target arm64-apple-ios8.0.0 -### 2>&1 | FileCheck --check-prefix=CHECK-LINK %s +// CHECK-LINK: "-framework" "Accelerate" + +// RUN: %clang -fveclib=Accelerate %s -nostdlib -target arm64-apple-ios8.0.0 -### 2>&1 | FileCheck --check-prefix=CHECK-LINK-NOSTDLIB %s +// CHECK-LINK-NOSTDLIB-NOT: "-framework" "Accelerate" + +// RUN: %clang -fveclib=Accelerate %s -nodefaultlibs -target arm64-apple-ios8.0.0 -### 2>&1 | FileCheck --check-prefix=CHECK-LINK-NODEFAULTLIBS %s +// CHECK-LINK-NODEFAULTLIBS-NOT: "-framework" "Accelerate" |