aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Driver/csky-cpus-error.c
blob: e1238fdd4fac589dfe78261d1d15ad357a6366b9 (plain)
1
2
3
4
5
6
7
// Check failed cases

// RUN: not %clang -target csky -c %s 2>&1 -mcpu=generic1 | FileCheck -check-prefix=FAIL-MCPU-NAME %s
// FAIL-MCPU-NAME: error: the clang compiler does not support '-mcpu=generic1'

// RUN: not %clang -target csky -c %s 2>&1 -mcpu=generic -march=ck860 | FileCheck -check-prefix=MISMATCH-ARCH %s
// MISMATCH-ARCH: error: the clang compiler does not support '-mcpu=generic'