From e18d46205ce1c41cb277b108a62ee7c6a20eae3c Mon Sep 17 00:00:00 2001 From: Dimitry Andric <dimitry@andric.com> Date: Tue, 12 Jan 2016 19:40:55 +0000 Subject: [PATCH] Add a clang test for r257376 (Ensure -mcpu=xscale works for arm targets). llvm-svn: 257509 --- clang/test/Driver/arm-xscale.c | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 clang/test/Driver/arm-xscale.c diff --git a/clang/test/Driver/arm-xscale.c b/clang/test/Driver/arm-xscale.c new file mode 100644 index 000000000000..9b00b832095d --- /dev/null +++ b/clang/test/Driver/arm-xscale.c @@ -0,0 +1,3 @@ +// RUN: %clang -target arm-freebsd -mcpu=xscale -### -c %s 2>&1 | FileCheck %s +// CHECK-NOT: error: the clang compiler does not support '-mcpu=xscale' +// CHECK: "-cc1"{{.*}} "-target-cpu" "xscale"{{.*}}