xref: /llvm-project/llvm/test/ExecutionEngine/MCJIT/test-constantexpr.ll (revision deab451e7a7f2dff42097049274637052c87eabd)
1; RUN: %lli -jit-kind=mcjit %s > /dev/null
2; RUN: %lli %s > /dev/null
3
4; This tests to make sure that we can evaluate weird constant expressions
5
6@A = global i32 5		; <ptr> [#uses=1]
7
8define i32 @main() {
9	%A = or i1 false, ptrtoint (ptr @A to i1)
10	ret i32 0
11}
12
13