11 lines · c
1// Tests that clang does not crash with invalid architectures in target triples.2//3// RUN: not %clang -target powerpc64le-linux-gnu -faltivec -o %t.o %s 2> %t.err4// RUN: FileCheck --input-file=%t.err --check-prefix=CHECK-NOFALTIVEC %s5// CHECK-NOFALTIVEC: error: the clang compiler does not support 'faltivec', please use -maltivec and include altivec.h explicitly6//7// RUN: not %clang -target powerpc64le-linux-gnu -fno-altivec -o %t.o %s 2> %t.err8// RUN: FileCheck --input-file=%t.err --check-prefix=CHECK-NOFNOALTIVEC %s9// CHECK-NOFNOALTIVEC: error: the clang compiler does not support 'fno-altivec', please use -mno-altivec10 11