diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-12-18 02:07:21 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-12-18 02:07:21 +0000 |
| commit | 07b2da5d67c37f84eb11b6460fd9c747dbaa9c40 (patch) | |
| tree | 5f01b5fd77eae720a70e87f2c74036eca1f79b7c | |
| parent | b437b7de1a7f9469894c6bff2f8a1dc1472995ae (diff) | |
| download | bcm5719-llvm-07b2da5d67c37f84eb11b6460fd9c747dbaa9c40.tar.gz bcm5719-llvm-07b2da5d67c37f84eb11b6460fd9c747dbaa9c40.zip | |
Print argc as well as argv
llvm-svn: 5105
| -rw-r--r-- | llvm/test/Regression/Jello/2002-12-16-ArgTest.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Regression/Jello/2002-12-16-ArgTest.ll b/llvm/test/Regression/Jello/2002-12-16-ArgTest.ll index e77d95892bd..512561476b2 100644 --- a/llvm/test/Regression/Jello/2002-12-16-ArgTest.ll +++ b/llvm/test/Regression/Jello/2002-12-16-ArgTest.ll @@ -1,9 +1,7 @@ -%.LC0 = internal global [14 x sbyte] c"in getoptions\00" ; <[14 x sbyte]*> [#uses=1] +%.LC0 = internal global [10 x sbyte] c"argc: %d\0A\00" implementation ; Functions: -void %__main() { ret void } - declare int %puts(sbyte*) void %getoptions(int* %argc) { @@ -11,12 +9,14 @@ bb0: ; No predecessors! ret void } +declare int %printf(sbyte*, ...) + int %main(int %argc, sbyte** %argv) { bb0: ; No predecessors! + call int (sbyte*, ...)* %printf( sbyte* getelementptr ([10 x sbyte]* %.LC0, long 0, long 0), int %argc) %cast224 = cast sbyte** %argv to sbyte* ; <sbyte*> [#uses=1] %local = alloca sbyte* ; <sbyte**> [#uses=3] store sbyte* %cast224, sbyte** %local - call void %__main( ) %cond226 = setle int %argc, 0 ; <bool> [#uses=1] br bool %cond226, label %bb3, label %bb2 |

