xref: /llvm-project/llvm/test/ExecutionEngine/Orc/trivial-return-zero.ll (revision 563ce9aa4ab22f10e0aa2799a3562a65a629ad0a)
1*563ce9aaSLang Hames; Check that we can execute a program that does nothing and just returns zero.
2*563ce9aaSLang Hames;
3*563ce9aaSLang Hames; This is the simplest possible JIT smoke test. If it fails it indicates a
4*563ce9aaSLang Hames; critical failure in the JIT (e.g. failure to set memory permissions) that's
5*563ce9aaSLang Hames; likely to affect all programs.
6*563ce9aaSLang Hames;
7*563ce9aaSLang Hames; RUN: %lli %s
8*563ce9aaSLang Hames
9*563ce9aaSLang Hamesdefine i32 @main(i32 %argc, i8** %argv)  {
10*563ce9aaSLang Hames  ret i32 0
11*563ce9aaSLang Hames}
12