diff options
Diffstat (limited to 'test/Assembler/datalayout-alloca-addrspace-mismatch-2.ll')
-rw-r--r-- | test/Assembler/datalayout-alloca-addrspace-mismatch-2.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Assembler/datalayout-alloca-addrspace-mismatch-2.ll b/test/Assembler/datalayout-alloca-addrspace-mismatch-2.ll new file mode 100644 index 000000000000..b6e2738a4f6e --- /dev/null +++ b/test/Assembler/datalayout-alloca-addrspace-mismatch-2.ll @@ -0,0 +1,11 @@ +; RUN: not llvm-as < %s 2>&1 | FileCheck %s + +target datalayout = "A1" + +; CHECK: :7:50: error: address space must match datalayout +define void @use_alloca() { + %alloca_scalar_no_align = alloca i32, align 4, addrspace(2), !foo !0 + ret void +} + +!0 = !{} |