diff options
Diffstat (limited to 'test/Driver/unsupported-faltivec.c')
-rw-r--r-- | test/Driver/unsupported-faltivec.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Driver/unsupported-faltivec.c b/test/Driver/unsupported-faltivec.c new file mode 100644 index 000000000000..f6a55bcd39f8 --- /dev/null +++ b/test/Driver/unsupported-faltivec.c @@ -0,0 +1,10 @@ +// Tests that clang does not crash with invalid architectures in target triples. +// +// RUN: not %clang -target powerpc64le-linux-gnu -faltivec -o %t.o %s 2> %t.err +// RUN: FileCheck --input-file=%t.err --check-prefix=CHECK-NOFALTIVEC %s +// CHECK-NOFALTIVEC: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly +// +// RUN: not %clang -target powerpc64le-linux-gnu -fno-altivec -o %t.o %s 2> %t.err +// RUN: FileCheck --input-file=%t.err --check-prefix=CHECK-NOFNOALTIVEC %s +// CHECK-NOFNOALTIVEC: error: the clang compiler does not support 'fno-altivec', please use -mno-altivec + |