1; RUN: not llc -march=arst -o /dev/null %s 2>&1 | FileCheck -check-prefix=MARCH %s
2; RUN: not llc -mtriple=arst-- -o /dev/null %s 2>&1 | FileCheck -check-prefix=MTRIPLE %s
3
4; Check the error message doesn't say error twice.
5
6; MARCH: {{.*}}llc{{.*}}: error: invalid target 'arst'.{{$}}
7; MTRIPLE: {{.*}}llc{{.*}}: error: unable to get target for 'arst-unknown-unknown', see --version and --triple.{{$}}
8
9define void @func() {
10  ret void
11}
12