llvm-project/llvm/test/Assembler/invalid-uselistorder-indexes-range.ll
Nikita Popov 75a479221b [Assembler] Convert tests to opaque pointers (NFC)
Some tests are removed because the error conditions can no longer
occur with opaque pointers.
2022-12-13 14:36:21 +01:00

8 lines
294 B
LLVM

; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
; CHECK: error: expected distinct uselistorder indexes in range [0, size)
@global = global i32 0
@alias1 = alias i32, ptr @global
@alias2 = alias i32, ptr @global
@alias3 = alias i32, ptr @global
uselistorder ptr @global, { 0, 3, 1 }