1 ; RUN: split-file %s %t
2 ; RUN: not llvm-as < %t/parse-error-1.ll -o /dev/null 2>&1 | FileCheck --check-prefix=PARSE-ERROR-1 %s
3 ; RUN: not llvm-as < %t/parse-error-2.ll -o /dev/null 2>&1 | FileCheck --check-prefix=PARSE-ERROR-2 %s
4 ; RUN: not llvm-as < %t/parse-error-3.ll -o /dev/null 2>&1 | FileCheck --check-prefix=PARSE-ERROR-3 %s
5 ; RUN: not llvm-as < %t/parse-error-4.ll -o /dev/null 2>&1 | FileCheck --check-prefix=PARSE-ERROR-4 %s
6 ; RUN: not llvm-as < %t/end-not-larger-start.ll -o /dev/null 2>&1 | FileCheck --check-prefix=END-NOT-LARGER-START %s
10 ; PARSE-ERROR-1: error: expected integer
11 @g = external global i8
13 ret ptr getelementptr inrange (i8, ptr @g, i64 8)
18 ; PARSE-ERROR-2: error: expected ','
19 @g = external global i8
21 ret ptr getelementptr inrange(42 (i8, ptr @g, i64 8)
26 ; PARSE-ERROR-3: error: expected integer
27 @g = external global i8
29 ret ptr getelementptr inrange(42, (i8, ptr @g, i64 8)
34 ; PARSE-ERROR-4: error: expected ')'
35 @g = external global i8
37 ret ptr getelementptr inrange(42, 123 (i8, ptr @g, i64 8)
40 ;--- end-not-larger-start.ll
42 ; END-NOT-LARGER-START: error: expected end to be larger than start
43 @g = external global i8
45 ret ptr getelementptr inrange(42, 42) (i8, ptr @g, i64 8)