New test.
[oota-llvm.git] / test / ExecutionEngine / 2003-08-21-EnvironmentTest.ll
index 82d4d460b957201844c393810f2395bd59e0af50..21e87cac9e5a72b7303393026dc0c7248be95256 100644 (file)
@@ -1,3 +1,6 @@
+; RUN: llvm-upgrade %s | llvm-as -f -o %t.bc
+; RUN: lli %t.bc > /dev/null
+
 ;
 ; Regression Test: EnvironmentTest.ll
 ;
@@ -6,16 +9,13 @@
 ;      environment to the main() function.
 ;
 
-target endian = little
-target pointersize = 32
-
 implementation
 
 declare uint %strlen(sbyte*)
 
 int %main(int %argc.1, sbyte** %argv.1, sbyte** %envp.1) {
-       %tmp.2 = load sbyte** %envp.1           ; <sbyte*> [#uses=2]
-       %tmp.3 = call uint %strlen( sbyte* %tmp.2 )             ; <uint> [#uses=1]
+       %tmp.2 = load sbyte** %envp.1
+       %tmp.3 = call uint %strlen( sbyte* %tmp.2 )
        %T = seteq uint %tmp.3, 0
        %R = cast bool %T to int        
        ret int %R