r262780 - Misc: add a test for TargetParser usage
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 5 13:12:33 PST 2016
Author: compnerd
Date: Sat Mar 5 15:12:33 2016
New Revision: 262780
URL: http://llvm.org/viewvc/llvm-project?rev=262780&view=rev
Log:
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.
Added:
cfe/trunk/test/Misc/target-parser.c
Added: cfe/trunk/test/Misc/target-parser.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Misc/target-parser.c?rev=262780&view=auto
==============================================================================
--- cfe/trunk/test/Misc/target-parser.c (added)
+++ cfe/trunk/test/Misc/target-parser.c Sat Mar 5 15:12:33 2016
@@ -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'
More information about the cfe-commits
mailing list