1 ; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
3 ; CHECK: 'allockind()' requires exactly one of alloc, realloc, and free
4 declare ptr @a(i32) allockind("aligned")
6 ; CHECK: 'allockind()' requires exactly one of alloc, realloc, and free
7 declare ptr @b(ptr) allockind("free,realloc")
9 ; CHECK: 'allockind("free")' doesn't allow uninitialized, zeroed, or aligned modifiers.
10 declare ptr @c(i32) allockind("free,zeroed")
12 ; CHECK: 'allockind()' can't be both zeroed and uninitialized
13 declare ptr @d(i32, ptr) allockind("realloc,uninitialized,zeroed")
15 ; CHECK: 'allockind()' requires exactly one of alloc, realloc, and free
16 declare ptr @e(i32, i32) allockind("alloc,free")