diff options
Diffstat (limited to 'llvm/test/Verifier/alloc-size-failedparse.ll')
-rw-r--r-- | llvm/test/Verifier/alloc-size-failedparse.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Verifier/alloc-size-failedparse.ll b/llvm/test/Verifier/alloc-size-failedparse.ll new file mode 100644 index 00000000000..bda64cd796d --- /dev/null +++ b/llvm/test/Verifier/alloc-size-failedparse.ll @@ -0,0 +1,7 @@ +; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s +; +; We handle allocsize with identical args in the parser, rather than the +; verifier. So, a seperate test is needed. + +; CHECK: 'allocsize' indices can't refer to the same parameter +declare i8* @a(i32, i32) allocsize(0, 0) |