12 lines · plain
1; REQUIRES: asserts2; Force the size to be small to check assertion message.3; RUN: not --crash opt -S %s -O2 -o - -non-global-value-max-name-size=0 2>&1 | FileCheck %s4; CHECK: Can't generate unique name: MaxNameSize is too small.5 6define i32 @f(i32 %a, i32 %b) {7 %c = add i32 %a, %b8 %d = add i32 %c, %a9 %e = add i32 %d, %b10 ret i32 %e11}12