[InstCombine] mark ADD with nuw if no unsigned overflow
[oota-llvm.git] / test / ExecutionEngine / test-call-no-external-funcs.ll
1 ; RUN: %lli %s > /dev/null
2 ; XFAIL: arm
3
4 define i32 @_Z14func_exit_codev() nounwind uwtable {
5 entry:
6   ret i32 0
7 }
8
9 define i32 @main() nounwind uwtable {
10 entry:
11   %retval = alloca i32, align 4
12   store i32 0, i32* %retval
13   %call = call i32 @_Z14func_exit_codev()
14   ret i32 %call
15 }