1 ; RUN: split-file %s %t
2 ; RUN: not llvm-as < %s %t/instr_smaller_id.ll 2>&1 | FileCheck %s --check-prefix=INSTR-SMALLER-ID
3 ; RUN: not llvm-as < %s %t/arg_smaller_id.ll 2>&1 | FileCheck %s --check-prefix=ARG-SMALLER-ID
4 ; RUN: not llvm-as < %s %t/block_smaller_id.ll 2>&1 | FileCheck %s --check-prefix=BLOCK-SMALLER-ID
5 ; RUN: not llvm-as < %s %t/global_smaller_id.ll 2>&1 | FileCheck %s --check-prefix=GLOBAL-SMALLER-ID
6 ; RUN: not llvm-as < %s %t/function_smaller_id.ll 2>&1 | FileCheck %s --check-prefix=FUNCTION-SMALLER-ID
8 ;--- instr_smaller_id.ll
10 ; INSTR-SMALLER-ID: error: instruction expected to be numbered '%11' or greater
17 ;--- arg_smaller_id.ll
19 ; ARG-SMALLER-ID: error: argument expected to be numbered '%11' or greater
20 define i32 @test(i32 %10, i32 %5) {
24 ;--- block_smaller_id.ll
26 ; BLOCK-SMALLER-ID: error: label expected to be numbered '11' or greater
35 ;--- global_smaller_id.ll
37 ; GLOBAL-SMALLER-ID: error: global expected to be numbered '@11' or greater
39 @10 = external global i8
40 @5 = external global i8
42 ;--- function_smaller_id.ll
44 ; FUNCTION-SMALLER-ID: error: function expected to be numbered '@11' or greater