37 lines · plain
1; RUN: split-file %s %t2; RUN: not llvm-as < %s %t/lower_greater_than_upper1.ll -o /dev/null 2>&1 | FileCheck %s --check-prefix=Lower-GT-Upper13; RUN: not llvm-as < %s %t/lower_greater_than_upper2.ll -o /dev/null 2>&1 | FileCheck %s --check-prefix=Lower-GT-Upper24; RUN: not llvm-as < %s %t/descending_order.ll -o /dev/null 2>&1 | FileCheck %s --check-prefix=DescOrder5; RUN: not llvm-as < %s %t/overlapping1.ll -o /dev/null 2>&1 | FileCheck %s --check-prefix=Overlapping16; RUN: not llvm-as < %s %t/overlapping2.ll -o /dev/null 2>&1 | FileCheck %s --check-prefix=Overlapping27 8;--- lower_greater_than_upper1.ll9; Lower-GT-Upper1: error: Invalid (unordered or overlapping) range list10define void @lower_greater_than_upper1(ptr initializes((4, 0)) %a) {11 ret void12}13 14;--- lower_greater_than_upper2.ll15; Lower-GT-Upper2: error: Invalid (unordered or overlapping) range list16define void @lower_greater_than_upper2(ptr initializes((0, 4), (8, 6)) %a) {17 ret void18}19 20;--- descending_order.ll21; DescOrder: error: Invalid (unordered or overlapping) range list22define void @descending_order(ptr initializes((8, 12), (0, 4)) %a) {23 ret void24}25 26;--- overlapping1.ll27; Overlapping1: error: Invalid (unordered or overlapping) range list28define void @overlapping1(ptr initializes((0, 4), (4, 8)) %a) {29 ret void30}31 32;--- overlapping2.ll33; Overlapping2: error: Invalid (unordered or overlapping) range list34define void @overlapping2(ptr initializes((0, 4), (2, 8)) %a) {35 ret void36}37