brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 2eed11d Raw
35 lines · plain
1; RUN: split-file %s %t2; RUN: not llvm-as < %t/missing-args.ll 2>&1 | FileCheck %s --check-prefix=MISSING-ARGS3; RUN: not llvm-as < %t/empty.ll 2>&1 | FileCheck %s --check-prefix=EMPTY4; RUN: not llvm-as < %t/unterminated.ll 2>&1 | FileCheck %s --check-prefix=UNTERMINATED5; RUN: not llvm-as < %t/invalid-kind.ll 2>&1 | FileCheck %s --check-prefix=INVALID-KIND6; RUN: not llvm-as < %t/other.ll 2>&1 | FileCheck %s --check-prefix=OTHER7; RUN: not llvm-as < %t/missing-colon.ll 2>&1 | FileCheck %s --check-prefix=MISSING-COLON8; RUN: not llvm-as < %t/invalid-access-kind.ll 2>&1 | FileCheck %s --check-prefix=INVALID-ACCESS-KIND9; RUN: not llvm-as < %t/default-after-loc.ll 2>&1 | FileCheck %s --check-prefix=DEFAULT-AFTER-LOC10 11;--- missing-args.ll12; MISSING-ARGS: error: expected '('13declare void @fn() memory14;--- empty.ll15; EMPTY: error: expected memory location (argmem, inaccessiblemem, errnomem) or access kind (none, read, write, readwrite)16declare void @fn() memory()17;--- unterminated.ll18; UNTERMINATED: error: unterminated memory attribute19declare void @fn() memory(read20;--- invalid-kind.ll21; INVALID-KIND: error: expected memory location (argmem, inaccessiblemem, errnomem) or access kind (none, read, write, readwrite)22declare void @fn() memory(foo)23;--- other.ll24; OTHER: error: expected memory location (argmem, inaccessiblemem, errnomem) or access kind (none, read, write, readwrite)25declare void @fn() memory(other: read)26;--- missing-colon.ll27; MISSING-COLON: error: expected ':' after location28declare void @fn() memory(argmem)29;--- invalid-access-kind.ll30; INVALID-ACCESS-KIND: error: expected access kind (none, read, write, readwrite)31declare void @fn() memory(argmem: foo)32;--- default-after-loc.ll33; DEFAULT-AFTER-LOC: error: default access kind must be specified first34declare void @fn() memory(argmem: read, write)35