Cleanup test
[oota-llvm.git] / test / ExecutionEngine / 2003-08-21-EnvironmentTest.ll
1 ;
2 ; Regression Test: EnvironmentTest.ll
3 ;
4 ; Description:
5 ;       This is a regression test that verifies that the JIT passes the
6 ;       environment to the main() function.
7 ;
8
9 implementation
10
11 declare uint %strlen(sbyte*)
12
13 int %main(int %argc.1, sbyte** %argv.1, sbyte** %envp.1) {
14         %tmp.2 = load sbyte** %envp.1
15         %tmp.3 = call uint %strlen( sbyte* %tmp.2 )
16         %T = seteq uint %tmp.3, 0
17         %R = cast bool %T to int        
18         ret int %R
19 }
20