From: Saleem Abdulrasool Date: Sat, 5 Mar 2016 21:12:33 +0000 (+0000) Subject: Misc: add a test for TargetParser usage X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8cb66099382566a0640e693a0c3651f363f000a4;p=clang Misc: add a test for TargetParser usage Ensure that an invalid value passed to target parser does not cause an assertion in +Asserts builds. Supporting test for PR26839. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@262780 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Misc/target-parser.c b/test/Misc/target-parser.c new file mode 100644 index 0000000000..fb1c8300d7 --- /dev/null +++ b/test/Misc/target-parser.c @@ -0,0 +1,2 @@ +// RUN: not %clang_cc1 -triple armv7--- -target-cpu not-a-cpu -fsyntax-only %s 2>&1 | FileCheck %s +// CHECK: error: unknown target CPU 'not-a-cpu'