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