You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.6 KiB
26 lines
1.6 KiB
// Tests that clang does not crash with invalid architectures in target triples.
|
|
//
|
|
// RUN: not %clang --target=noarch-unknown-linux -o %t.o %s 2> %t.err
|
|
// RUN: FileCheck --input-file=%t.err --check-prefix=CHECK-NOARCH-LINUX %s
|
|
// CHECK-NOARCH-LINUX: error: unknown target triple 'noarch-unknown-linux', please use -triple or -arch
|
|
//
|
|
// RUN: not %clang --target=noarch-unknown-darwin -o %t.o %s 2> %t.err
|
|
// RUN: FileCheck --input-file=%t.err --check-prefix=CHECK-NOARCH-DARWIN %s
|
|
// CHECK-NOARCH-DARWIN: error: unknown target triple 'unknown-unknown-macosx{{.+}}', please use -triple or -arch
|
|
//
|
|
// RUN: not %clang --target=noarch-unknown-windows -o %t.o %s 2> %t.err
|
|
// RUN: FileCheck --input-file=%t.err --check-prefix=CHECK-NOARCH-WINDOWS %s
|
|
// CHECK-NOARCH-WINDOWS: error: unknown target triple 'noarch-unknown-windows-{{.+}}', please use -triple or -arch
|
|
//
|
|
// RUN: not %clang --target=noarch-unknown-freebsd -o %t.o %s 2> %t.err
|
|
// RUN: FileCheck --input-file=%t.err --check-prefix=CHECK-NOARCH-FREEBSD %s
|
|
// CHECK-NOARCH-FREEBSD: error: unknown target triple 'noarch-unknown-freebsd', please use -triple or -arch
|
|
//
|
|
// RUN: not %clang --target=noarch-unknown-netbsd -o %t.o %s 2> %t.err
|
|
// RUN: FileCheck --input-file=%t.err --check-prefix=CHECK-NOARCH-NETBSD %s
|
|
// CHECK-NOARCH-NETBSD: error: unknown target triple 'noarch-unknown-netbsd', please use -triple or -arch
|
|
//
|
|
// RUN: not %clang --target=noarch-unknown-nacl -o %t.o %s 2> %t.err
|
|
// RUN: FileCheck --input-file=%t.err --check-prefix=CHECK-NOARCH-NACL %s
|
|
// CHECK-NOARCH-NACL: error: the target architecture 'noarch' is not supported by the target 'Native Client'
|