summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/invalid-datalayout2.ll
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-12-10 01:17:08 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-12-10 01:17:08 +0000
commit5330c69bd15179904dfae54fff511033305679e1 (patch)
treef8bc96df964b46da2779c44531172ad4d8bd2d6e /llvm/test/Assembler/invalid-datalayout2.ll
parentd85548d423409e11204f60b5d76f61a779d41b09 (diff)
downloadbcm5719-llvm-5330c69bd15179904dfae54fff511033305679e1.tar.gz
bcm5719-llvm-5330c69bd15179904dfae54fff511033305679e1.zip
DataLayout: Move asserts over to report_fatal_error
As indicated by the tests, it is possible to feed the AsmParser an invalid datalayout string. We should verify the result of parsing this string regardless of whether or not we have assertions enabled. llvm-svn: 223898
Diffstat (limited to 'llvm/test/Assembler/invalid-datalayout2.ll')
-rw-r--r--llvm/test/Assembler/invalid-datalayout2.ll3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/test/Assembler/invalid-datalayout2.ll b/llvm/test/Assembler/invalid-datalayout2.ll
new file mode 100644
index 00000000000..a435612bf85
--- /dev/null
+++ b/llvm/test/Assembler/invalid-datalayout2.ll
@@ -0,0 +1,3 @@
+; RUN: not llvm-as < %s 2>&1 | FileCheck %s
+target datalayout = "m:v"
+; CHECK: Unknown mangling in datalayout string
OpenPOWER on IntegriCloud