llvm/test/Assembler/invalid-datalayout24.ll
Owen Anderson 8fae2845b1 Teach DataLayout that alignments on basic types must be powers of two.
Fixes assertion failures/crashes on bad datalayout specifications.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230940 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-02 09:35:03 +00:00

7 lines
138 B
LLVM

; RUN: not llvm-as < %s 2>&1 | FileCheck %s
target datalayout = "i32:32:24"
; CHECK: Invalid preferred alignment, must be a power of 2