1*e9754f02SNikita Popov; RUN: split-file %s %t 2*e9754f02SNikita Popov; RUN: not llvm-as < %t/missing-args.ll 2>&1 | FileCheck %s --check-prefix=MISSING-ARGS 3*e9754f02SNikita Popov; RUN: not llvm-as < %t/empty.ll 2>&1 | FileCheck %s --check-prefix=EMPTY 4*e9754f02SNikita Popov; RUN: not llvm-as < %t/unterminated.ll 2>&1 | FileCheck %s --check-prefix=UNTERMINATED 5*e9754f02SNikita Popov; RUN: not llvm-as < %t/invalid-kind.ll 2>&1 | FileCheck %s --check-prefix=INVALID-KIND 6*e9754f02SNikita Popov; RUN: not llvm-as < %t/other.ll 2>&1 | FileCheck %s --check-prefix=OTHER 7*e9754f02SNikita Popov; RUN: not llvm-as < %t/missing-colon.ll 2>&1 | FileCheck %s --check-prefix=MISSING-COLON 8*e9754f02SNikita Popov; RUN: not llvm-as < %t/invalid-access-kind.ll 2>&1 | FileCheck %s --check-prefix=INVALID-ACCESS-KIND 9*e9754f02SNikita Popov; RUN: not llvm-as < %t/default-after-loc.ll 2>&1 | FileCheck %s --check-prefix=DEFAULT-AFTER-LOC 10*e9754f02SNikita Popov 11*e9754f02SNikita Popov;--- missing-args.ll 12*e9754f02SNikita Popov; MISSING-ARGS: error: expected '(' 13*e9754f02SNikita Popovdeclare void @fn() memory 14*e9754f02SNikita Popov;--- empty.ll 15*e9754f02SNikita Popov; EMPTY: error: expected memory location (argmem, inaccessiblemem) or access kind (none, read, write, readwrite) 16*e9754f02SNikita Popovdeclare void @fn() memory() 17*e9754f02SNikita Popov;--- unterminated.ll 18*e9754f02SNikita Popov; UNTERMINATED: error: unterminated memory attribute 19*e9754f02SNikita Popovdeclare void @fn() memory(read 20*e9754f02SNikita Popov;--- invalid-kind.ll 21*e9754f02SNikita Popov; INVALID-KIND: error: expected memory location (argmem, inaccessiblemem) or access kind (none, read, write, readwrite) 22*e9754f02SNikita Popovdeclare void @fn() memory(foo) 23*e9754f02SNikita Popov;--- other.ll 24*e9754f02SNikita Popov; OTHER: error: expected memory location (argmem, inaccessiblemem) or access kind (none, read, write, readwrite) 25*e9754f02SNikita Popovdeclare void @fn() memory(other: read) 26*e9754f02SNikita Popov;--- missing-colon.ll 27*e9754f02SNikita Popov; MISSING-COLON: error: expected ':' after location 28*e9754f02SNikita Popovdeclare void @fn() memory(argmem) 29*e9754f02SNikita Popov;--- invalid-access-kind.ll 30*e9754f02SNikita Popov; INVALID-ACCESS-KIND: error: expected access kind (none, read, write, readwrite) 31*e9754f02SNikita Popovdeclare void @fn() memory(argmem: foo) 32*e9754f02SNikita Popov;--- default-after-loc.ll 33*e9754f02SNikita Popov; DEFAULT-AFTER-LOC: error: default access kind must be specified first 34*e9754f02SNikita Popovdeclare void @fn() memory(argmem: read, write) 35